Class: Degica::Table

Inherits:
Object show all
Defined in:
lib/degica/objects/table.rb

Instance Attribute Summary

Attributes included from Collectable

#collection

Instance Method Summary collapse

Methods inherited from Object

#actions, #prompt

Methods included from Actionable

#actions, #do, #prompt

Constructor Details

#initialize(objects = [Ruby.new]) ⇒ Table

Returns a new instance of Table.



7
8
9
# File 'lib/degica/objects/table.rb', line 7

def initialize(objects = [Ruby.new])
  super(objects)
end

Instance Method Details

#describeObject



11
12
13
14
15
16
# File 'lib/degica/objects/table.rb', line 11

def describe
  desc = []
  desc << "The table is quite old."
  desc << @objects.describe
  desc.join("\n")
end

#nameObject



3
4
5
# File 'lib/degica/objects/table.rb', line 3

def name
  :table
end