Class: Tequila::Config

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

Defined Under Namespace

Classes: Default

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



33
34
35
# File 'lib/tree.rb', line 33

def initialize
  @show_initial_label = Default.show_initial_label?
end

Instance Attribute Details

#show_initial_labelObject (readonly)

Returns the value of attribute show_initial_label.



23
24
25
# File 'lib/tree.rb', line 23

def show_initial_label
  @show_initial_label
end

Instance Method Details

#hide_initial_label!Object



29
30
31
# File 'lib/tree.rb', line 29

def hide_initial_label!
  @show_initial_label = false
end

#show_initial_label!Object



25
26
27
# File 'lib/tree.rb', line 25

def show_initial_label!
  @show_initial_label = true
end