Class: Oktest::JsonMatcher::OR
- Inherits:
-
Object
- Object
- Oktest::JsonMatcher::OR
- Defined in:
- lib/oktest.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Instance Method Summary collapse
-
#initialize(*items) ⇒ OR
constructor
A new instance of OR.
- #inspect ⇒ Object
Constructor Details
#initialize(*items) ⇒ OR
Returns a new instance of OR.
767 768 769 |
# File 'lib/oktest.rb', line 767 def initialize(*items) @items = items end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
770 771 772 |
# File 'lib/oktest.rb', line 770 def items @items end |
Instance Method Details
#inspect ⇒ Object
771 772 773 774 |
# File 'lib/oktest.rb', line 771 def inspect() #; [!2mu33] returns 'OR(...)' string. return "OR(#{@items.collect(&:inspect).join(', ')})" end |