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.
791 792 793 |
# File 'lib/oktest.rb', line 791 def initialize(*items) @items = items end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
794 795 796 |
# File 'lib/oktest.rb', line 794 def items @items end |
Instance Method Details
#inspect ⇒ Object
795 796 797 798 |
# File 'lib/oktest.rb', line 795 def inspect() #; [!w43ag] returns 'AND(...)' string. return "AND(#{@items.collect(&:inspect).join(', ')})" end |