Class: Servactory::Maintenance::Attributes::DefineMethod
- Inherits:
-
Object
- Object
- Servactory::Maintenance::Attributes::DefineMethod
- Defined in:
- lib/servactory/maintenance/attributes/define_method.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, content:) ⇒ DefineMethod
constructor
A new instance of DefineMethod.
Constructor Details
#initialize(name:, content:) ⇒ DefineMethod
Returns a new instance of DefineMethod.
10 11 12 13 |
# File 'lib/servactory/maintenance/attributes/define_method.rb', line 10 def initialize(name:, content:) @name = name.to_sym @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
7 8 9 |
# File 'lib/servactory/maintenance/attributes/define_method.rb', line 7 def content @content end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/servactory/maintenance/attributes/define_method.rb', line 7 def name @name end |