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