Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##############################################################
- RUBY
- ##############################################################
- #class definition
- def initialize ${Parameter=param1}
- ${Caret}
- end
- #class constructor
- def initialize ${Parameter=param1}
- ${Caret}
- end
- #block
- {|${param=param}| ${param} ${Caret} }
- #doblock
- do |${param=param}|
- ${param} ${Caret}
- end
- ##############################################################
- #Quick Property
- public ${Type=object} ${Property=Property} { get; set; }${Caret}
- #property
- ${type} ${toFieldName(name=Property)};
- public ${type=int} ${name=Property} {
- get { return ${toFieldName(name)}; }
- set { ${toFieldName(name)} = value; }
- }${Caret}
- #.ctor
- public ${ClassName}(${Caret})
- {
- ${Selection}
- }
- #ifelse
- if (${condition}) {
- ${Selection}
- } else {
- ${Caret}
- }
- #foreach
- foreach (${var} ${element} in ${collection}) {
- ${Selection}
- }
- #for
- for (int ${counter=i} = 0; ${counter} < ${end}; ${counter}++) {
- ${Selection}
- }
Add Comment
Please, Sign In to add comment