Class: InputComponentPreview::TempObj
- Inherits:
-
Object
- Object
- InputComponentPreview::TempObj
- Defined in:
- lib/alveole/previews/input_component_preview.rb
Instance Attribute Summary collapse
-
#fieldname ⇒ Object
Returns the value of attribute fieldname.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(fieldname = 'Example value') ⇒ TempObj
constructor
A new instance of TempObj.
Constructor Details
#initialize(fieldname = 'Example value') ⇒ TempObj
Returns a new instance of TempObj.
5 6 7 |
# File 'lib/alveole/previews/input_component_preview.rb', line 5 def initialize(fieldname = 'Example value') @fieldname = fieldname end |
Instance Attribute Details
#fieldname ⇒ Object
Returns the value of attribute fieldname.
3 4 5 |
# File 'lib/alveole/previews/input_component_preview.rb', line 3 def fieldname @fieldname end |
Class Method Details
.human_attribute_name(_) ⇒ Object
9 10 11 |
# File 'lib/alveole/previews/input_component_preview.rb', line 9 def self.human_attribute_name(_) 'label' end |