Class: ThinReports::Core::Shape::Base::Interface Abstract

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/thinreports/core/shape/base/interface.rb

Overview

This class is abstract.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#internalObject (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