Class: Ruff::Throws::Eff
- Inherits:
-
Object
- Object
- Ruff::Throws::Eff
- Defined in:
- lib/ruff/objects.rb
Overview
Eff
is internal object.
They make effects encapsulate with ID and arguments to be sent to the handler.
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
passes to a handler which can catch the effect.
-
#id ⇒ Object
readonly
makes the object unique.
Instance Method Summary collapse
-
#initialize(id, args) ⇒ Eff
constructor
creates a new object with
id
andargs
.
Constructor Details
#initialize(id, args) ⇒ Eff
creates a new object with id
and args
.
16 17 18 19 |
# File 'lib/ruff/objects.rb', line 16 def initialize(id, args) @id = id @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
passes to a handler which can catch the effect.
13 14 15 |
# File 'lib/ruff/objects.rb', line 13 def args @args end |
#id ⇒ Object (readonly)
makes the object unique.
10 11 12 |
# File 'lib/ruff/objects.rb', line 10 def id @id end |