Class: Treely::Configuration
- Inherits:
-
Object
- Object
- Treely::Configuration
- Defined in:
- lib/treely/configuration.rb
Instance Attribute Summary collapse
-
#style ⇒ Object
readonly
Returns the value of attribute style.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #transform_style!(&block) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/treely/configuration.rb', line 5 def initialize @style = { :dot => %{\x2e}, :space => %{\x20}, :new_line => %{\x0a}, :bar => %{│ }, :indent => %{ }, :branch => %{├── }, :last_branch => %{└── } } end |
Instance Attribute Details
#style ⇒ Object (readonly)
Returns the value of attribute style.
3 4 5 |
# File 'lib/treely/configuration.rb', line 3 def style @style end |
Instance Method Details
#transform_style!(&block) ⇒ Object
17 18 19 |
# File 'lib/treely/configuration.rb', line 17 def transform_style!(&block) @style.transform_values!(&block) end |