Class: Reference
Instance Method Summary collapse
-
#initialize(name, vars) ⇒ Reference
constructor
A new instance of Reference.
- #value ⇒ Object
- #value=(newValue) ⇒ Object
Constructor Details
#initialize(name, vars) ⇒ Reference
Returns a new instance of Reference.
24 25 26 27 |
# File 'lib/failirc/extensions.rb', line 24 def initialize (name, vars) @getter = eval "lambda { #{name} }", vars @setter = eval "lambda { |v| #{name} = v }", vars end |