Class: EacRubyUtils::CommonConstructor::InstanceInitialize
- Defined in:
- lib/eac_ruby_utils/common_constructor/instance_initialize.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#common_constructor ⇒ Object
readonly
Returns the value of attribute common_constructor.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(common_constructor, args, object, block) ⇒ InstanceInitialize
constructor
A new instance of InstanceInitialize.
- #perform ⇒ Object
Constructor Details
#initialize(common_constructor, args, object, block) ⇒ InstanceInitialize
Returns a new instance of InstanceInitialize.
8 9 10 11 12 13 |
# File 'lib/eac_ruby_utils/common_constructor/instance_initialize.rb', line 8 def initialize(common_constructor, args, object, block) @common_constructor = common_constructor @args = args @object = object @block = block end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
6 7 8 |
# File 'lib/eac_ruby_utils/common_constructor/instance_initialize.rb', line 6 def args @args end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
6 7 8 |
# File 'lib/eac_ruby_utils/common_constructor/instance_initialize.rb', line 6 def block @block end |
#common_constructor ⇒ Object (readonly)
Returns the value of attribute common_constructor.
6 7 8 |
# File 'lib/eac_ruby_utils/common_constructor/instance_initialize.rb', line 6 def common_constructor @common_constructor end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
6 7 8 |
# File 'lib/eac_ruby_utils/common_constructor/instance_initialize.rb', line 6 def object @object end |
Instance Method Details
#perform ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/eac_ruby_utils/common_constructor/instance_initialize.rb', line 15 def perform validate_args_count object.run_callbacks :initialize do object_attributes_set object_block_set object_after_callback end end |