Class: ABNF::Range
Instance Method Summary collapse
-
#initialize(r) ⇒ Range
constructor
A new instance of Range.
- #predicate(c) ⇒ Object
Methods inherited from Satisfies
Constructor Details
#initialize(r) ⇒ Range
Returns a new instance of Range.
64 65 66 |
# File 'lib/abnf.rb', line 64 def initialize(r) @r = r end |
Instance Method Details
#predicate(c) ⇒ Object
68 69 70 |
# File 'lib/abnf.rb', line 68 def predicate(c) @r.member?(c) end |