lib/lunokhod/parser.rb
# Intercept DSL keywords that may be suffixed with tags.
Intercept DSL keywords that may be suffixed with tags.
Intercept DSL keywords that may be suffixed with tags .
def method_missing(m, *args, &block)
      case m
      when /^q(?:uestion)?(?:_(.+))?$/
        _question(*args.unshift($1), &block)
      when /^a(?:nswer)?(?:_(.+))?$/
        _answer(*args.unshift($1), &block)
      when /^l(?:abel)?(?:_(.+))?$/
        _label(*args.unshift($1), &block)
      when /^g(?:roup)?(?:_(.+))?$/
        _group(*args.unshift($1), &block)
      when /^s(?:ection)?(?:_(.+))?$/
        _section(*args.unshift($1), &block)
      when /^grid(?:_(.+))?$/
        _grid(*args.unshift($1), &block)
      when /^repeater(?:_(.+))?$/
        _repeater(*args.unshift($1), &block)
      when /^dependency_.+$/
        dependency(*args)
      when /^condition(?:_(.+))$/
        _condition(*args.unshift($1), &block)
      else
        super
      end
    end
def method_missing ( m , * args , & block ) case m when / ^q(?:uestion)?(?:_(.+))?$ / _question ( * args . unshift ( $1 ) , & block ) when / ^a(?:nswer)?(?:_(.+))?$ / _answer ( * args . unshift ( $1 ) , & block ) when / ^l(?:abel)?(?:_(.+))?$ / _label ( * args . unshift ( $1 ) , & block ) when / ^g(?:roup)?(?:_(.+))?$ / _group ( * args . unshift ( $1 ) , & block ) when / ^s(?:ection)?(?:_(.+))?$ / _section ( * args . unshift ( $1 ) , & block ) when / ^grid(?:_(.+))?$ / _grid ( * args . unshift ( $1 ) , & block ) when / ^repeater(?:_(.+))?$ / _repeater ( * args . unshift ( $1 ) , & block ) when / ^dependency_.+$ / dependency ( * args ) when / ^condition(?:_(.+))$ / _condition ( * args . unshift ( $1 ) , & block ) else super end end
Intercept DSL keywords that may be suffixed with tags.
Intercept DSL keywords that may be suffixed with tags .
m
<not_specific>
args
<not_specific>
block
<not_specific>