Class: Ghaki::Meta::Dict::Lookup
- Inherits:
-
Object
- Object
- Ghaki::Meta::Dict::Lookup
- Defined in:
- lib/ghaki/meta/dict/lookup.rb
Instance Attribute Summary collapse
-
#storage ⇒ Object
Returns the value of attribute storage.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(name, opts = {}) ⇒ Lookup
constructor
A new instance of Lookup.
- #opt_alias(opts, get) ⇒ Object
- #opt_plural(opts, get) ⇒ Object
- #opt_set(opts, value) ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#storage ⇒ Object
Returns the value of attribute storage.
9 10 11 |
# File 'lib/ghaki/meta/dict/lookup.rb', line 9 def storage @storage end |
#token ⇒ Object
Returns the value of attribute token.
9 10 11 |
# File 'lib/ghaki/meta/dict/lookup.rb', line 9 def token @token end |
Instance Method Details
#opt_alias(opts, get) ⇒ Object
40 41 42 |
# File 'lib/ghaki/meta/dict/lookup.rb', line 40 def opt_alias opts, get @storage.opt_alias opts, @token, get end |
#opt_plural(opts, get) ⇒ Object
36 37 38 |
# File 'lib/ghaki/meta/dict/lookup.rb', line 36 def opt_plural opts, get @storage.opt_plural opts, @token, get end |
#opt_set(opts, value) ⇒ Object
44 45 46 |
# File 'lib/ghaki/meta/dict/lookup.rb', line 44 def opt_set opts, value @storage.opt_set opts, @token, value end |
#to_s ⇒ Object
32 33 34 |
# File 'lib/ghaki/meta/dict/lookup.rb', line 32 def to_s @storage.get_snake(@token) end |