Class: Thinreports::BasicReport::Core::Shape::Base::Interface Abstract
- Inherits:
-
Object
- Object
- Thinreports::BasicReport::Core::Shape::Base::Interface
- Extended by:
- Forwardable
- Includes:
- Utils
- Defined in:
- lib/thinreports/basic_report/core/shape/base/interface.rb
Overview
This class is abstract.
Direct Known Subclasses
Thinreports::BasicReport::Core::Shape::Basic::Interface, List::SectionInterface
Instance Attribute Summary collapse
-
#internal ⇒ Object
readonly
Returns the value of attribute internal.
Instance Method Summary collapse
- #copy(parent) ⇒ Object
-
#initialize(parent, format, internal = nil) ⇒ Interface
constructor
A new instance of Interface.
Methods included from Utils
#blank_value?, #call_block_in, #deep_copy, included
Constructor Details
#initialize(parent, format, internal = nil) ⇒ Interface
Returns a new instance of Interface.
20 21 22 |
# File 'lib/thinreports/basic_report/core/shape/base/interface.rb', line 20 def initialize(parent, format, internal = nil) @internal = internal || init_internal(parent, format) end |
Instance Attribute Details
#internal ⇒ Object (readonly)
Returns the value of attribute internal.
18 19 20 |
# File 'lib/thinreports/basic_report/core/shape/base/interface.rb', line 18 def internal @internal end |
Instance Method Details
#copy(parent) ⇒ Object
24 25 26 |
# File 'lib/thinreports/basic_report/core/shape/base/interface.rb', line 24 def copy(parent) self.class.new(parent, internal.format, internal.copy(parent)) end |