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