Class: SimplerDB::AttributeParam
- Defined in:
- lib/simplerdb/db.rb
Instance Attribute Summary collapse
-
#replace ⇒ Object
Returns the value of attribute replace.
Attributes inherited from Attribute
Instance Method Summary collapse
-
#initialize(name, value, replace = false) ⇒ AttributeParam
constructor
A new instance of AttributeParam.
- #to_attr ⇒ Object
Methods inherited from Attribute
Constructor Details
#initialize(name, value, replace = false) ⇒ AttributeParam
Returns a new instance of AttributeParam.
69 70 71 72 |
# File 'lib/simplerdb/db.rb', line 69 def initialize(name, value, replace = false) super(name, value) @replace = replace end |
Instance Attribute Details
#replace ⇒ Object
Returns the value of attribute replace.
67 68 69 |
# File 'lib/simplerdb/db.rb', line 67 def replace @replace end |