class DBA::Command
Attributes
database[RW]
table_name[R]
Public Class Methods
new(database)
click to toggle source
# File lib/dba/command.rb, line 2 def initialize(database) self.database = database end
Public Instance Methods
table_name=(table_name)
click to toggle source
# File lib/dba/command.rb, line 10 def table_name=(table_name) @table_name = table_name.to_sym unless database.tables.include?(@table_name) raise DBA::Error, "could not find table #{table_name}" end end
Private Instance Methods
printer()
click to toggle source
# File lib/dba/command.rb, line 20 def printer @printer ||= DBA::Printer.new end