Module: Reform::Contract::Readonly
- Included in:
- Reform::Contract
- Defined in:
- lib/reform/contract.rb
Overview
DISCUSS: separate file?
Instance Method Summary collapse
Instance Method Details
#options_for(name) ⇒ Object
53 54 55 |
# File 'lib/reform/contract.rb', line 53 def (name) self.class.(name) end |
#readonly?(name) ⇒ Boolean
49 50 51 |
# File 'lib/reform/contract.rb', line 49 def readonly?(name) (name)[:writeable] == false end |