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
159 160 161 |
# File 'lib/ivy/target.rb', line 159 def matcher @matcher end |
#parser ⇒ Object
Returns the value of attribute parser
159 160 161 |
# File 'lib/ivy/target.rb', line 159 def parser @parser end |
Instance Method Details
#parse(value) ⇒ Object
160 161 162 |
# File 'lib/ivy/target.rb', line 160 def parse(value) parser ? parser.call(value) : value end |