Sha256: 3eccada739f1f1d8484d1e1ced084c447e823fa7ba2b4a7a40e0f4379a65d61f
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 Bytes
Contents
module Formic class Button < Base default_template 'formic/default/button' attr_reader :label def _initialize label=nil, options={}, &block if label.instance_of? Hash options = label label = nil end super options, &block @label = label end def method_missing method, label=nil, options={}, &block super method, label, options{}, &block @label ||= method.to_s.underscore.titleize return self end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
formic-0.2.5 | lib/formic/button.rb |
formic-0.2.1 | lib/formic/button.rb |
formic-0.1.0 | lib/formic/button.rb |