Class: DissociatedIntrospection::Block
- Inherits:
-
Struct
- Object
- Struct
- DissociatedIntrospection::Block
- Defined in:
- lib/dissociated_introspection/block.rb
Instance Attribute Summary collapse
-
#ast ⇒ Object
Returns the value of attribute ast.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Attribute Details
#ast ⇒ Object
Returns the value of attribute ast
2 3 4 |
# File 'lib/dissociated_introspection/block.rb', line 2 def ast @ast end |
#type ⇒ Object
Returns the value of attribute type
2 3 4 |
# File 'lib/dissociated_introspection/block.rb', line 2 def type @type end |
Class Method Details
.source ⇒ Object
4 5 6 |
# File 'lib/dissociated_introspection/block.rb', line 4 def Block.source :source end |
.to_h ⇒ Object
8 9 10 |
# File 'lib/dissociated_introspection/block.rb', line 8 def Block.to_h super.merge(source: source) end |