Class: Methodd
- Inherits:
-
Object
- Object
- Methodd
- Defined in:
- lib/ycn/method.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, parameters, content) ⇒ Methodd
constructor
A new instance of Methodd.
Constructor Details
#initialize(name, type, parameters, content) ⇒ Methodd
Returns a new instance of Methodd.
4 5 6 7 8 9 10 11 |
# File 'lib/ycn/method.rb', line 4 def initialize name, type, parameters, content eval("extend #{camelize configatron.lang}Method") @name = name @type = type @parameters = parameters || [] @content = content end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
2 3 4 |
# File 'lib/ycn/method.rb', line 2 def content @content end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/ycn/method.rb', line 2 def name @name end |
#parameters ⇒ Object
Returns the value of attribute parameters.
2 3 4 |
# File 'lib/ycn/method.rb', line 2 def parameters @parameters end |
#type ⇒ Object
Returns the value of attribute type.
2 3 4 |
# File 'lib/ycn/method.rb', line 2 def type @type end |