Class: Fusuma::Config::Index::Key
- Inherits:
-
Object
- Object
- Fusuma::Config::Index::Key
- Defined in:
- lib/fusuma/config/index.rb
Overview
Keys in Index
Instance Attribute Summary collapse
-
#fallback ⇒ Object
readonly
Returns the value of attribute fallback.
-
#skippable ⇒ Object
readonly
Returns the value of attribute skippable.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(symbol_word, skippable: false, fallback: nil) ⇒ Key
constructor
A new instance of Key.
- #inspect ⇒ Object
Constructor Details
#initialize(symbol_word, skippable: false, fallback: nil) ⇒ Key
Returns a new instance of Key.
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/fusuma/config/index.rb', line 56 def initialize(symbol_word, skippable: false, fallback: nil) @symbol = begin symbol_word.to_sym rescue StandardError symbol_word end @skippable = skippable @fallback = begin fallback.to_sym rescue StandardError fallback end end |
Instance Attribute Details
#fallback ⇒ Object (readonly)
Returns the value of attribute fallback.
78 79 80 |
# File 'lib/fusuma/config/index.rb', line 78 def fallback @fallback end |
#skippable ⇒ Object (readonly)
Returns the value of attribute skippable.
78 79 80 |
# File 'lib/fusuma/config/index.rb', line 78 def skippable @skippable end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
78 79 80 |
# File 'lib/fusuma/config/index.rb', line 78 def symbol @symbol end |