Class: ThinReports::Core::Shape::Base::Interface Abstract
- Extended by:
- Forwardable
- Defined in:
- lib/thinreports/core/shape/base/interface.rb
Overview
This class is abstract.
Direct Known Subclasses
ThinReports::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.
Constructor Details
#initialize(parent, format, internal = nil) ⇒ Interface
Returns a new instance of Interface.
18 19 20 |
# File 'lib/thinreports/core/shape/base/interface.rb', line 18 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.
16 17 18 |
# File 'lib/thinreports/core/shape/base/interface.rb', line 16 def internal @internal end |
Instance Method Details
#copy(parent) ⇒ Object
22 23 24 |
# File 'lib/thinreports/core/shape/base/interface.rb', line 22 def copy(parent) self.class.new(parent, internal.format, internal.copy(parent)) end |