Class: AST

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

Direct Known Subclasses

Rubysierung::AST

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#to_parseObject

Returns the value of attribute to_parse

Returns:

  • (Object)

    the current value of to_parse



1
2
3
# File 'lib/ast/ast.rb', line 1

def to_parse
  @to_parse
end

Instance Method Details

#methodself

just so it makes sense in contest of the ast

Returns:

  • (self)

    make it chainable



9
10
11
# File 'lib/ast/ast.rb', line 9

def method
  self
end

#paramsHash<String, String>

Returns parameter of a method.

Returns:

  • (Hash<String, String>)

    parameter of a method



3
4
5
# File 'lib/ast/ast.rb', line 3

def params
  get_param_hash to_parse
end