Class: DisjunctionPattern
- Inherits:
-
Object
- Object
- DisjunctionPattern
- Includes:
- HashInitialized, Inspectable
- Defined in:
- lib/json_patterns.rb
Constant Summary
Constants included from Inspectable
Instance Attribute Summary collapse
-
#alternatives ⇒ Object
Returns the value of attribute alternatives.
Instance Method Summary collapse
Methods included from HashInitialized
Methods included from Inspectable
Instance Attribute Details
#alternatives ⇒ Object
Returns the value of attribute alternatives.
63 64 65 |
# File 'lib/json_patterns.rb', line 63 def alternatives @alternatives end |
Instance Method Details
#to_s ⇒ Object
65 66 67 |
# File 'lib/json_patterns.rb', line 65 def to_s "one_of(#{alternatives.join(', ')})" end |