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.



767
768
769
# File 'lib/oktest.rb', line 767

def initialize(*items)
  @items = items
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items.



770
771
772
# File 'lib/oktest.rb', line 770

def items
  @items
end

Instance Method Details

#inspectObject



771
772
773
774
# File 'lib/oktest.rb', line 771

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