Class: Servactory::Maintenance::Attributes::DefineMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/servactory/maintenance/attributes/define_method.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content.



7
8
9
# File 'lib/servactory/maintenance/attributes/define_method.rb', line 7

def content
  @content
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/servactory/maintenance/attributes/define_method.rb', line 7

def name
  @name
end