Class: Oktest::JsonMatcher::OR

Inherits:
Object
  • Object
show all
Defined in:
lib/oktest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*items) ⇒ OR

Returns a new instance of OR.



780
781
782
# File 'lib/oktest.rb', line 780

def initialize(*items)
  @items = items
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items.



783
784
785
# File 'lib/oktest.rb', line 783

def items
  @items
end

Instance Method Details

#inspectObject



784
785
786
787
# File 'lib/oktest.rb', line 784

def inspect()
  #; [!2mu33] returns 'OR(...)' string.
  return "OR(#{@items.collect(&:inspect).join(', ')})"
end