Module: Nullz
- Defined in:
- lib/null_object.rb,
lib/nullz/version.rb
Defined Under Namespace
Classes: NullObject
Constant Summary collapse
- VERSION =
'0.8.1'.freeze
Class Method Summary collapse
-
.on_null_object_created ⇒ Object
Returns the value of attribute on_null_object_created.
-
.on_null_object_created=(value) ⇒ Object
Sets the attribute on_null_object_created.
-
.use_null_object ⇒ Object
Returns the value of attribute use_null_object.
-
.use_null_object=(value) ⇒ Object
Sets the attribute use_null_object.
Class Method Details
.on_null_object_created ⇒ Object
Returns the value of attribute on_null_object_created.
20 21 22 |
# File 'lib/null_object.rb', line 20 def on_null_object_created @on_null_object_created end |
.on_null_object_created=(value) ⇒ Object
Sets the attribute on_null_object_created
20 21 22 |
# File 'lib/null_object.rb', line 20 def on_null_object_created=(value) @on_null_object_created = value end |
.use_null_object ⇒ Object
Returns the value of attribute use_null_object.
20 21 22 |
# File 'lib/null_object.rb', line 20 def use_null_object @use_null_object end |
.use_null_object=(value) ⇒ Object
Sets the attribute use_null_object
20 21 22 |
# File 'lib/null_object.rb', line 20 def use_null_object=(value) @use_null_object = value end |