class Nagare::Context

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/nagare.rb, line 132
def initialize(attributes = {})
  @attributes = attributes
end

Public Instance Methods

[](key) click to toggle source
# File lib/nagare.rb, line 140
def [](key)
  @attributes[key]
end
extend(attributes) click to toggle source
# File lib/nagare.rb, line 136
def extend(attributes)
  Context.new(@attributes.merge(attributes))
end
method_missing(method) click to toggle source
# File lib/nagare.rb, line 148
def method_missing(method)
  if @attributes.has_key?(method)
    @attributes.fetch(method)
  end
end
respond_to?(key, private_methods = false) click to toggle source
Calls superclass method
# File lib/nagare.rb, line 144
def respond_to?(key, private_methods = false)
  @attributes.has_key?(key) || super
end