Class: ActsAsRecursiveTree::Options::Values::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/acts_as_recursive_tree/options/values.rb

Direct Known Subclasses

MultiValue, RangeValue, SingleValue

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (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

#valueObject (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_valueObject



14
15
16
# File 'lib/acts_as_recursive_tree/options/values.rb', line 14

def prepared_value
  value
end