Class: TarvitHelpers::HashPresenter::WithRules::Rule
- Inherits:
-
Object
- Object
- TarvitHelpers::HashPresenter::WithRules::Rule
- Defined in:
- lib/tarvit-helpers/modules/hash_presenter/with_rules.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#value_transformer ⇒ Object
readonly
Returns the value of attribute value_transformer.
Instance Method Summary collapse
-
#initialize(path, value_transformer) ⇒ Rule
constructor
A new instance of Rule.
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
#path ⇒ Object (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_transformer ⇒ Object (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 |