Module: Ridgepole::Ext::SchemaDumper::ClassMethods
- Defined in:
- lib/ridgepole/ext/schema_dumper.rb
Instance Attribute Summary collapse
-
#__with_default_fk_name ⇒ Object
readonly
Returns the value of attribute __with_default_fk_name.
Instance Method Summary collapse
Instance Attribute Details
#__with_default_fk_name ⇒ Object (readonly)
Returns the value of attribute __with_default_fk_name.
11 12 13 |
# File 'lib/ridgepole/ext/schema_dumper.rb', line 11 def __with_default_fk_name @__with_default_fk_name end |
Instance Method Details
#with_default_fk_name(value) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/ridgepole/ext/schema_dumper.rb', line 13 def with_default_fk_name(value) @__with_default_fk_name = value yield ensure remove_instance_variable(:@__with_default_fk_name) end |