Class: AmsLayout::Parser::NullControl
- Inherits:
-
Object
- Object
- AmsLayout::Parser::NullControl
- Defined in:
- lib/ams_layout/parser.rb
Overview
Control
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize ⇒ NullControl
constructor
A new instance of NullControl.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ NullControl
Returns a new instance of NullControl.
125 126 127 128 129 |
# File 'lib/ams_layout/parser.rb', line 125 def initialize @label = '' @id = '' @type = '' end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
123 124 125 |
# File 'lib/ams_layout/parser.rb', line 123 def id @id end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
123 124 125 |
# File 'lib/ams_layout/parser.rb', line 123 def label @label end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
123 124 125 |
# File 'lib/ams_layout/parser.rb', line 123 def type @type end |
Instance Method Details
#to_hash ⇒ Object
131 132 133 |
# File 'lib/ams_layout/parser.rb', line 131 def to_hash {label: @label, id: @id, type: @type} end |