Class: Ivy::ResultValue
- Inherits:
-
Struct
- Object
- Struct
- Ivy::ResultValue
- Defined in:
- lib/ivy/target.rb
Instance Attribute Summary collapse
-
#matcher ⇒ Object
Returns the value of attribute matcher.
-
#parser ⇒ Object
Returns the value of attribute parser.
Instance Method Summary collapse
Instance Attribute Details
#matcher ⇒ Object
Returns the value of attribute matcher
123 124 125 |
# File 'lib/ivy/target.rb', line 123 def matcher @matcher end |
#parser ⇒ Object
Returns the value of attribute parser
123 124 125 |
# File 'lib/ivy/target.rb', line 123 def parser @parser end |
Instance Method Details
#parse(value) ⇒ Object
124 125 126 |
# File 'lib/ivy/target.rb', line 124 def parse(value) parser ? parser.call(value) : value end |