Class: Oktest::JsonMatcher::AND
- Inherits:
-
Object
- Object
- Oktest::JsonMatcher::AND
- Defined in:
- lib/oktest.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Instance Method Summary collapse
-
#initialize(*items) ⇒ AND
constructor
A new instance of AND.
- #inspect ⇒ Object
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
#items ⇒ Object (readonly)
Returns the value of attribute items.
781 782 783 |
# File 'lib/oktest.rb', line 781 def items @items end |
Instance Method Details
#inspect ⇒ Object
782 783 784 785 |
# File 'lib/oktest.rb', line 782 def inspect() #; [!w43ag] returns 'AND(...)' string. return "AND(#{@items.collect(&:inspect).join(', ')})" end |