Class: Isomorfeus::Ferret::FieldSymbol
- Inherits:
-
BlankSlate
- Object
- BlankSlate
- Isomorfeus::Ferret::FieldSymbol
- Includes:
- FieldSymbolMethods
- Defined in:
- lib/isomorfeus/ferret/field_symbol.rb
Overview
See FieldSymbolMethods
Instance Attribute Summary collapse
-
#desc ⇒ Object
writeonly
Sets the attribute desc.
-
#type ⇒ Object
writeonly
Sets the attribute type.
Instance Method Summary collapse
- #class ⇒ Object
-
#initialize(symbol, desc = false) ⇒ FieldSymbol
constructor
A new instance of FieldSymbol.
- #method_missing(method, *args) ⇒ Object
Methods included from FieldSymbolMethods
Constructor Details
#initialize(symbol, desc = false) ⇒ FieldSymbol
Returns a new instance of FieldSymbol.
69 70 71 72 |
# File 'lib/isomorfeus/ferret/field_symbol.rb', line 69 def initialize(symbol, desc = false) @symbol = symbol @desc = desc end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
74 75 76 |
# File 'lib/isomorfeus/ferret/field_symbol.rb', line 74 def method_missing(method, *args) @symbol.__send__(method, *args) end |
Instance Attribute Details
#desc=(value) ⇒ Object (writeonly)
Sets the attribute desc
82 83 84 |
# File 'lib/isomorfeus/ferret/field_symbol.rb', line 82 def desc=(value) @desc = value end |
#type=(value) ⇒ Object (writeonly)
Sets the attribute type
82 83 84 |
# File 'lib/isomorfeus/ferret/field_symbol.rb', line 82 def type=(value) @type = value end |
Instance Method Details
#class ⇒ Object
78 79 80 |
# File 'lib/isomorfeus/ferret/field_symbol.rb', line 78 def class FieldSymbol end |