Class: Dbsketch::Model::CustomCode

Inherits:
Database_Object show all
Defined in:
lib/dbsketch/model/custom_code.rb

Instance Attribute Summary collapse

Attributes inherited from Database_Object

#comment, #dependencies, #meaning, #name, #order

Instance Method Summary collapse

Methods inherited from Database_Object

#add_dependencies, #class_name, #compute_order!, #inspect, #reset_order!

Constructor Details

#initialize(name, do_code, undo_code: nil, meaning: nil, comment: nil, dependencies: []) ⇒ CustomCode

Returns a new instance of CustomCode.



11
12
13
14
15
# File 'lib/dbsketch/model/custom_code.rb', line 11

def initialize name, do_code, undo_code: nil, meaning: nil, comment: nil, dependencies: []
	super name, :meaning => meaning, :comment => comment, :dependencies => dependencies
	@do_code = do_code
	@undo_code = undo_code
end

Instance Attribute Details

#do_codeObject (readonly)

Returns the value of attribute do_code.



17
18
19
# File 'lib/dbsketch/model/custom_code.rb', line 17

def do_code
  @do_code
end

#undo_codeObject (readonly)

Returns the value of attribute undo_code.



17
18
19
# File 'lib/dbsketch/model/custom_code.rb', line 17

def undo_code
  @undo_code
end