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.
780 781 782 |
# File 'lib/oktest.rb', line 780 def initialize(*items) @items = items end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
783 784 785 |
# File 'lib/oktest.rb', line 783 def items @items end |
Instance Method Details
#inspect ⇒ Object
784 785 786 787 |
# File 'lib/oktest.rb', line 784 def inspect() #; [!2mu33] returns 'OR(...)' string. return "OR(#{@items.collect(&:inspect).join(', ')})" end |