Guest User

Untitled

a guest
May 26th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. ##############################################################
  2. RUBY
  3. ##############################################################
  4.  
  5. #class definition
  6. def initialize ${Parameter=param1}
  7. ${Caret}
  8. end
  9.  
  10. #class constructor
  11. def initialize ${Parameter=param1}
  12. ${Caret}
  13. end
  14.  
  15. #block
  16. {|${param=param}| ${param} ${Caret} }
  17.  
  18. #doblock
  19. do |${param=param}|
  20. ${param} ${Caret}
  21. end
  22.  
  23. ##############################################################
  24.  
  25.  
  26. #Quick Property
  27. public ${Type=object} ${Property=Property} { get; set; }${Caret}
  28.  
  29. #property
  30. ${type} ${toFieldName(name=Property)};
  31.  
  32. public ${type=int} ${name=Property} {
  33. get { return ${toFieldName(name)}; }
  34. set { ${toFieldName(name)} = value; }
  35. }${Caret}
  36.  
  37. #.ctor
  38. public ${ClassName}(${Caret})
  39. {
  40. ${Selection}
  41. }
  42.  
  43. #ifelse
  44. if (${condition}) {
  45. ${Selection}
  46. } else {
  47. ${Caret}
  48. }
  49.  
  50. #foreach
  51. foreach (${var} ${element} in ${collection}) {
  52. ${Selection}
  53. }
  54.  
  55. #for
  56. for (int ${counter=i} = 0; ${counter} < ${end}; ${counter}++) {
  57. ${Selection}
  58. }
Add Comment
Please, Sign In to add comment