Class: MilkTea::FlowScope
- Inherits:
-
Object
- Object
- MilkTea::FlowScope
- Defined in:
- lib/milk_tea/core/binding_types.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, val) ⇒ Object
- #each(&block) ⇒ Object
- #each_with_object(init, &block) ⇒ Object
- #empty? ⇒ Boolean
-
#initialize ⇒ FlowScope
constructor
A new instance of FlowScope.
- #key?(key) ⇒ Boolean
Constructor Details
#initialize ⇒ FlowScope
Returns a new instance of FlowScope.
10 |
# File 'lib/milk_tea/core/binding_types.rb', line 10 def initialize = (@bindings = {}) |
Instance Method Details
#[](key) ⇒ Object
11 |
# File 'lib/milk_tea/core/binding_types.rb', line 11 def [](key) = @bindings[key] |
#[]=(key, val) ⇒ Object
12 |
# File 'lib/milk_tea/core/binding_types.rb', line 12 def []=(key, val); @bindings[key] = val; end |
#each(&block) ⇒ Object
15 |
# File 'lib/milk_tea/core/binding_types.rb', line 15 def each(&block) = @bindings.each(&block) |
#each_with_object(init, &block) ⇒ Object
16 |
# File 'lib/milk_tea/core/binding_types.rb', line 16 def each_with_object(init, &block) = @bindings.each_with_object(init, &block) |
#empty? ⇒ Boolean
14 |
# File 'lib/milk_tea/core/binding_types.rb', line 14 def empty? = @bindings.empty? |
#key?(key) ⇒ Boolean
13 |
# File 'lib/milk_tea/core/binding_types.rb', line 13 def key?(key) = @bindings.key?(key) |