Class: TarvitHelpers::HashPresenter::WithRules::Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/tarvit-helpers/modules/hash_presenter/with_rules.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, value_transformer) ⇒ Rule

Returns a new instance of Rule.



56
57
58
# File 'lib/tarvit-helpers/modules/hash_presenter/with_rules.rb', line 56

def initialize(path, value_transformer)
  @path, @value_transformer = path, value_transformer
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



55
56
57
# File 'lib/tarvit-helpers/modules/hash_presenter/with_rules.rb', line 55

def path
  @path
end

#value_transformerObject (readonly)

Returns the value of attribute value_transformer.



55
56
57
# File 'lib/tarvit-helpers/modules/hash_presenter/with_rules.rb', line 55

def value_transformer
  @value_transformer
end