Class: Lucio::List

Inherits:
Object
  • Object
show all
Defined in:
lib/lucio/list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tree, evaluable = true) ⇒ List

Returns a new instance of List.



5
6
7
8
# File 'lib/lucio/list.rb', line 5

def initialize(tree, evaluable = true)
  @tree = tree
  @evaluable = evaluable
end

Instance Attribute Details

#treeObject (readonly)

Returns the value of attribute tree.



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

def tree
  @tree
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/lucio/list.rb', line 10

def to_s
  flat(tree)
end