class Fusuma::Config::Index::Key
Keys in Index
Attributes
fallback[R]
skippable[R]
symbol[R]
Public Class Methods
new(symbol_word, skippable: false, fallback: nil)
click to toggle source
# 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
Public Instance Methods
inspect()
click to toggle source
# File lib/fusuma/config/index.rb, line 72 def inspect skip_marker = @skippable && Searcher.skip? ? '(skip)' : '' fallback_marker = @fallback && Searcher.fallback? ? '(fallback)' : '' "#{@symbol}#{skip_marker}#{fallback_marker}" end