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.



751
752
753
# File 'lib/oktest.rb', line 751

def initialize(*items)
  @items = items
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items.



754
755
756
# File 'lib/oktest.rb', line 754

def items
  @items
end

Instance Method Details

#inspectObject



755
756
757
758
# File 'lib/oktest.rb', line 755

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