Class: Usine::Definition

Inherits:
Object
  • Object
show all
Defined in:
lib/usine/definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, *args, &block) ⇒ Definition

Returns a new instance of Definition.



6
7
8
9
# File 'lib/usine/definition.rb', line 6

def initialize(name, *args, &block)
  @name = name
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



4
5
6
# File 'lib/usine/definition.rb', line 4

def block
  @block
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/usine/definition.rb', line 3

def name
  @name
end