Class: Argyle::Component::Text

Inherits:
Base
  • Object
show all
Defined in:
lib/argyle/component/text.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#area

Instance Method Summary collapse

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

#valueObject (readonly)

Returns the value of attribute value.



2
3
4
# File 'lib/argyle/component/text.rb', line 2

def value
  @value
end