Module: Phlexi::Form::Options::Disabled

Included in:
Builder
Defined in:
lib/phlexi/form/options/disabled.rb

Instance Method Summary collapse

Instance Method Details

#disabled!(disabled = true) ⇒ Object



11
12
13
14
# File 'lib/phlexi/form/options/disabled.rb', line 11

def disabled!(disabled = true)
  options[:disabled] = disabled
  self
end

#disabled?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/phlexi/form/options/disabled.rb', line 7

def disabled?
  options[:disabled] == true
end