Class: TableTennis::Stage::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
MemoWise, Util::Inspectable
Defined in:
lib/table_tennis/stage/base.rb

Overview

Base class for each stage of the rendering pipeline, mostly here just to delegate to TableData.

Direct Known Subclasses

Format, Layout, Painter, Render

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util::Inspectable

#inspect

Constructor Details

#initialize(data) ⇒ Base

Returns a new instance of Base.



14
# File 'lib/table_tennis/stage/base.rb', line 14

def initialize(data) = @data = data

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



10
11
12
# File 'lib/table_tennis/stage/base.rb', line 10

def data
  @data
end