Class: EacRubyUtils::CommonConstructor::Initialize
- Defined in:
- lib/eac_ruby_utils/common_constructor.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#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) ⇒ Initialize
constructor
A new instance of Initialize.
- #run ⇒ Object
Constructor Details
#initialize(common_constructor, args, object) ⇒ Initialize
Returns a new instance of Initialize.
88 89 90 91 92 |
# File 'lib/eac_ruby_utils/common_constructor.rb', line 88 def initialize(common_constructor, args, object) @common_constructor = common_constructor @args = args @object = object end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
86 87 88 |
# File 'lib/eac_ruby_utils/common_constructor.rb', line 86 def args @args end |
#common_constructor ⇒ Object (readonly)
Returns the value of attribute common_constructor.
86 87 88 |
# File 'lib/eac_ruby_utils/common_constructor.rb', line 86 def common_constructor @common_constructor end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
86 87 88 |
# File 'lib/eac_ruby_utils/common_constructor.rb', line 86 def object @object end |
Instance Method Details
#run ⇒ Object
94 95 96 97 98 99 100 |
# File 'lib/eac_ruby_utils/common_constructor.rb', line 94 def run validate_args_count object.run_callbacks :initialize do object_attributes_set object_after_callback end end |