Class: Renderer::Entities::Method
- Defined in:
- lib/renderer/entities/method.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#overriding ⇒ Object
Returns the value of attribute overriding.
-
#source ⇒ Object
Returns the value of attribute source.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(parent, type, name, model) ⇒ Method
constructor
A new instance of Method.
Methods inherited from Base
#class?, #def?, #full_path, #inspect, #module?, #register_reference, #root, #root?, #static?, #to_s
Constructor Details
#initialize(parent, type, name, model) ⇒ Method
Returns a new instance of Method.
8 9 10 11 12 13 |
# File 'lib/renderer/entities/method.rb', line 8 def initialize(parent, type, name, model) super(parent, name) @overriding = model[:overriding] # TODO @type = type @definition = MethodDefinition.new(self, model) end |
Instance Attribute Details
#definition ⇒ Object
Returns the value of attribute definition.
6 7 8 |
# File 'lib/renderer/entities/method.rb', line 6 def definition @definition end |
#overriding ⇒ Object
Returns the value of attribute overriding.
6 7 8 |
# File 'lib/renderer/entities/method.rb', line 6 def overriding @overriding end |
#source ⇒ Object
Returns the value of attribute source.
6 7 8 |
# File 'lib/renderer/entities/method.rb', line 6 def source @source end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
15 16 17 |
# File 'lib/renderer/entities/method.rb', line 15 def type @type end |