Sha256: b4c864582917308f1dc46798ee3c67238db78c741d1b937246006bb462cc76bf
Contents?: true
Size: 361 Bytes
Versions: 2
Compression:
Stored size: 361 Bytes
Contents
module Tableview::Helper class Format def initialize(p) @params = p end def html? @params[:format] == :html || @params[:format].blank? end def method_missing(name, args, &blk) if m = name.match(/^(.+)\?$/) @params[:format] == m.captures.first else super end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tableview-0.2.0 | lib/tableview/helper.rb |
tableview-0.1.0 | lib/tableview/helper.rb |