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.



791
792
793
# File 'lib/oktest.rb', line 791

def initialize(*items)
  @items = items
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items.



794
795
796
# File 'lib/oktest.rb', line 794

def items
  @items
end

Instance Method Details

#inspectObject



795
796
797
798
# File 'lib/oktest.rb', line 795

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