Class: Templater::Description
- Inherits:
-
Object
- Object
- Templater::Description
- Defined in:
- lib/templater/description.rb
Direct Known Subclasses
ActionDescription, ArgumentDescription, InvocationDescription
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options = {}, &block) ⇒ Description
constructor
A new instance of Description.
Constructor Details
#initialize(name, options = {}, &block) ⇒ Description
Returns a new instance of Description.
6 7 8 9 10 |
# File 'lib/templater/description.rb', line 6 def initialize(name, ={}, &block) @name = name @options = @block = block end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
4 5 6 |
# File 'lib/templater/description.rb', line 4 def block @block end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/templater/description.rb', line 4 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/templater/description.rb', line 4 def @options end |