Class: Bijou::Parse::Def
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Target
Instance Method Summary collapse
-
#initialize(name) ⇒ Def
constructor
A new instance of Def.
- #renderMethod ⇒ Object
Methods inherited from Target
#render_args, #render_code, #render_code_, #render_expr, #render_line, #render_marker, #render_part
Constructor Details
#initialize(name) ⇒ Def
Returns a new instance of Def.
120 121 122 123 |
# File 'lib/bijou/backend.rb', line 120 def initialize(name) super() @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
125 126 127 |
# File 'lib/bijou/backend.rb', line 125 def name @name end |
Instance Method Details
#renderMethod ⇒ Object
127 128 129 130 131 132 133 134 135 |
# File 'lib/bijou/backend.rb', line 127 def renderMethod result = '' result << " def #{@name}\n" result << @output result << " end\n" return result end |