Class: Thinreports::BasicReport::Core::Shape::Manager::Format
- Inherits:
-
Format::Base
- Object
- Format::Base
- Thinreports::BasicReport::Core::Shape::Manager::Format
show all
- Defined in:
- lib/thinreports/basic_report/core/shape/manager/format.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
#attributes, config_accessor, config_checker, config_reader, config_writer
Constructor Details
#initialize(config, id = nil, &block) ⇒ Format
Returns a new instance of Format.
12
13
14
15
|
# File 'lib/thinreports/basic_report/core/shape/manager/format.rb', line 12
def initialize(config, id = nil, &block)
super(config, &block)
@identifier = id || object_id
end
|
Instance Attribute Details
#identifier ⇒ Symbol, Integer
10
11
12
|
# File 'lib/thinreports/basic_report/core/shape/manager/format.rb', line 10
def identifier
@identifier
end
|
Instance Method Details
#find_shape(id) ⇒ Object
17
18
19
|
# File 'lib/thinreports/basic_report/core/shape/manager/format.rb', line 17
def find_shape(id)
shapes[id]
end
|
#has_shape?(id) ⇒ Boolean
21
22
23
|
# File 'lib/thinreports/basic_report/core/shape/manager/format.rb', line 21
def has_shape?(id)
shapes.key?(id)
end
|
#shapes ⇒ Object
25
26
27
|
# File 'lib/thinreports/basic_report/core/shape/manager/format.rb', line 25
def shapes
@shapes ||= {}
end
|