Class: Easyrb::Local
- Inherits:
-
Object
- Object
- Easyrb::Local
- Defined in:
- lib/easyrb/local.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
# Declarations # #.
-
#hash ⇒ Object
readonly
# Declarations # #.
Class Method Summary collapse
-
.[](context, hash) ⇒ Object
# Class Methods # #.
Instance Method Summary collapse
-
#generate_binding ⇒ Object
# Instance Methods # #.
-
#initialize(context, hash) ⇒ Local
constructor
# Constructor # #.
Constructor Details
#initialize(context, hash) ⇒ Local
# Constructor #
#
19 20 21 22 |
# File 'lib/easyrb/local.rb', line 19 def initialize(context, hash) @context = context @hash = hash || Hash.new end |
Instance Attribute Details
#context ⇒ Object (readonly)
# Declarations #
#
11 12 13 |
# File 'lib/easyrb/local.rb', line 11 def context @context end |
#hash ⇒ Object (readonly)
# Declarations #
#
11 12 13 |
# File 'lib/easyrb/local.rb', line 11 def hash @hash end |
Class Method Details
.[](context, hash) ⇒ Object
# Class Methods #
#
30 31 32 |
# File 'lib/easyrb/local.rb', line 30 def self.[](context, hash) new(context, hash).generate_binding end |
Instance Method Details
#generate_binding ⇒ Object
# Instance Methods #
#
40 41 42 |
# File 'lib/easyrb/local.rb', line 40 def generate_binding locals_function.(*values) end |