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



159
160
161
# File 'lib/ivy/target.rb', line 159

def matcher
  @matcher
end

#parserObject

Returns the value of attribute parser

Returns:

  • (Object)

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