Class: Nemo::Examples::PersonEditor::PhoneNumber
- Inherits:
-
Object
- Object
- Nemo::Examples::PersonEditor::PhoneNumber
- Defined in:
- lib/nemo/examples/person_editor.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
Returns the value of attribute number.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#number ⇒ Object
Returns the value of attribute number.
207 208 209 |
# File 'lib/nemo/examples/person_editor.rb', line 207 def number @number end |
#type ⇒ Object
Returns the value of attribute type.
207 208 209 |
# File 'lib/nemo/examples/person_editor.rb', line 207 def type @type end |
Instance Method Details
#metaobject ⇒ Object
209 210 211 212 213 214 215 216 217 218 219 220 221 |
# File 'lib/nemo/examples/person_editor.rb', line 209 def Nemo.(self) { text :type label 'Type' maxlength 10 required text :number label 'Number' maxlength 20 required } end |