Class: Reactive::Initializer::Stage

Inherits:
Object
  • Object
show all
Defined in:
lib/reactive-core/initializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, level, proc) ⇒ Stage

Returns a new instance of Stage.



272
273
274
# File 'lib/reactive-core/initializer.rb', line 272

def initialize(name, level, proc)
  @name, @level, @proc = name, level, proc
end

Instance Attribute Details

#levelObject

Returns the value of attribute level.



271
272
273
# File 'lib/reactive-core/initializer.rb', line 271

def level
  @level
end

#nameObject

Returns the value of attribute name.



271
272
273
# File 'lib/reactive-core/initializer.rb', line 271

def name
  @name
end

#procObject

Returns the value of attribute proc.



271
272
273
# File 'lib/reactive-core/initializer.rb', line 271

def proc
  @proc
end

Instance Method Details

#==(other) ⇒ Object

Checks equivalence based on #name.



276
277
278
# File 'lib/reactive-core/initializer.rb', line 276

def ==(other)
  other.is_a?(Stage) ? @name == other.name : @name == other
end