Class: Ivy::ResultValue

Inherits:
Struct
  • Object
show all
Defined in:
lib/ivy/target.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#matcherObject

Returns the value of attribute matcher

Returns:

  • (Object)

    the current value of matcher



123
124
125
# File 'lib/ivy/target.rb', line 123

def matcher
  @matcher
end

#parserObject

Returns the value of attribute parser

Returns:

  • (Object)

    the current value of 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