Method: Malt::Format::Text#method_missing
- Defined in:
- lib/malt/formats/text.rb
#method_missing(sym, *args, &block) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/malt/formats/text.rb', line 27 def method_missing(sym, *args, &block) if md = /^to_/.match(sym.to_s) type = md.post_match.to_sym opts = .merge(:type=>type, :file=>refile(type)) return Malt.text(text, opts) end super(sym, *args, &block) end |