Class: Tequila::Config
- Inherits:
-
Object
- Object
- Tequila::Config
- Defined in:
- lib/tree.rb
Defined Under Namespace
Classes: Default
Instance Attribute Summary collapse
-
#show_initial_label ⇒ Object
readonly
Returns the value of attribute show_initial_label.
Instance Method Summary collapse
- #hide_initial_label! ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #show_initial_label! ⇒ Object
Constructor Details
#initialize ⇒ Config
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_label ⇒ Object (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 |