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
58 59 60 |
# File 'lib/reform/contract.rb', line 58 def (name) self.class.(name) end |
#readonly?(name) ⇒ Boolean
55 56 57 |
# File 'lib/reform/contract.rb', line 55 def readonly?(name) (name)[:writeable] == false end |