Method: HtmlWriter#method_missing
- Defined in:
- lib/wheels/html_writer.rb
#method_missing(sym, *args, &block) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/wheels/html_writer.rb', line 19 def method_missing(sym, *args, &block) if args[0].is_a? Array # Then the first argument is an array of objects. end @representation[sym] = {:args=>args[0]} if block_given? block.call(self) end return HtmlWriter.new(@representation[sym]) end |