Method: JSGF::Parser#define_optional
- Defined in:
- lib/jsgf/parser.rb
#define_optional(*args) ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/jsgf/parser.rb', line 42 def define_optional(*args) if args.first.respond_to?(:optional) args.first.optional = true args.first else JSGF::Optional.new(*args) end end |