Module: Phlexi::Form::Options::Readonly
- Included in:
- Builder
- Defined in:
- lib/phlexi/form/options/readonly.rb
Instance Method Summary collapse
Instance Method Details
#readonly!(readonly = true) ⇒ Object
11 12 13 14 |
# File 'lib/phlexi/form/options/readonly.rb', line 11 def readonly!(readonly = true) [:readonly] = readonly self end |
#readonly? ⇒ Boolean
7 8 9 |
# File 'lib/phlexi/form/options/readonly.rb', line 7 def readonly? [:readonly] == true end |