Class: ActsAsRecursiveTree::Options::Values::Base
- Inherits:
-
Object
- Object
- ActsAsRecursiveTree::Options::Values::Base
- Defined in:
- lib/acts_as_recursive_tree/options/values.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #apply_negated_to(attribute) ⇒ Object
- #apply_to(attribute) ⇒ Object
-
#initialize(value, config) ⇒ Base
constructor
A new instance of Base.
- #prepared_value ⇒ Object
Constructor Details
#initialize(value, config) ⇒ Base
Returns a new instance of Base.
9 10 11 12 |
# File 'lib/acts_as_recursive_tree/options/values.rb', line 9 def initialize(value, config) @value = value @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/acts_as_recursive_tree/options/values.rb', line 7 def config @config end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/acts_as_recursive_tree/options/values.rb', line 7 def value @value end |
Instance Method Details
#apply_negated_to(attribute) ⇒ Object
20 |
# File 'lib/acts_as_recursive_tree/options/values.rb', line 20 def apply_negated_to(attribute); end |
#apply_to(attribute) ⇒ Object
18 |
# File 'lib/acts_as_recursive_tree/options/values.rb', line 18 def apply_to(attribute); end |
#prepared_value ⇒ Object
14 15 16 |
# File 'lib/acts_as_recursive_tree/options/values.rb', line 14 def prepared_value value end |