lib/fusuma/config/index.rb in fusuma-1.11.1 vs lib/fusuma/config/index.rb in fusuma-2.0.0.pre
- old
+ new
@@ -32,18 +32,25 @@
end
end
# Keys in Index
class Key
- def initialize(symbol_word, skippable: false)
+ 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
- attr_reader :symbol, :skippable
+ attr_reader :symbol, :skippable, :fallback
end
end
end
end