Class: Argyle::Component::Text
- Defined in:
- lib/argyle/component/text.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(area:, value:) ⇒ Text
constructor
A new instance of Text.
Constructor Details
#initialize(area:, value:) ⇒ Text
Returns a new instance of Text.
4 5 6 7 8 |
# File 'lib/argyle/component/text.rb', line 4 def initialize(area:, value:) super(area: area) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
2 3 4 |
# File 'lib/argyle/component/text.rb', line 2 def value @value end |