Class: Oktest::JsonMatcher::AND

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*items) ⇒ AND

Returns a new instance of AND.



778
779
780
# File 'lib/oktest.rb', line 778

def initialize(*items)
  @items = items
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items.



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

def items
  @items
end

Instance Method Details

#inspectObject



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

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