Class: Argyle::Component::Base

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

Direct Known Subclasses

Text

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(area:) ⇒ Base

Returns a new instance of Base.

Parameters:

  • area (Symbol)


6
7
8
# File 'lib/argyle/component/base.rb', line 6

def initialize(area:)
  @area = area.to_sym
end

Instance Attribute Details

#areaObject (readonly)

Returns the value of attribute area.



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

def area
  @area
end