class Formic::Button

Attributes

label[R]

Public Instance Methods

_initialize(label=nil, options={}) click to toggle source
Calls superclass method Formic::Base#_initialize
# File lib/formic/button.rb, line 6
def _initialize label=nil, options={}, &block
  if label.instance_of? Hash
    options = label
    label = nil
  end

  super options, &block
  @label = label
end
method_missing(method, label=nil, options={}) click to toggle source
Calls superclass method Formic::Base#method_missing
# File lib/formic/button.rb, line 16
def method_missing method, label=nil, options={}, &block
  super method, label, options{}, &block
  @label ||=  method.to_s.underscore.titleize
  return self
end