Class: DissociatedIntrospection::Block

Inherits:
Struct
  • Object
show all
Defined in:
lib/dissociated_introspection/block.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#astObject

Returns the value of attribute ast

Returns:

  • (Object)

    the current value of ast



2
3
4
# File 'lib/dissociated_introspection/block.rb', line 2

def ast
  @ast
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



2
3
4
# File 'lib/dissociated_introspection/block.rb', line 2

def type
  @type
end

Class Method Details

.sourceObject



4
5
6
# File 'lib/dissociated_introspection/block.rb', line 4

def Block.source
  :source
end

.to_hObject



8
9
10
# File 'lib/dissociated_introspection/block.rb', line 8

def Block.to_h
  super.merge(source: source)
end