Class: Dbsketch::Model::CustomCode
- Inherits:
-
Database_Object
- Object
- Database_Object
- Dbsketch::Model::CustomCode
- Defined in:
- lib/dbsketch/model/custom_code.rb
Instance Attribute Summary collapse
-
#do_code ⇒ Object
readonly
Returns the value of attribute do_code.
-
#undo_code ⇒ Object
readonly
Returns the value of attribute undo_code.
Attributes inherited from Database_Object
#comment, #dependencies, #meaning, #name, #order
Instance Method Summary collapse
-
#initialize(name, do_code, undo_code: nil, meaning: nil, comment: nil, dependencies: []) ⇒ CustomCode
constructor
A new instance of CustomCode.
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_code ⇒ Object (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_code ⇒ Object (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 |