Sha256: c675d14a8f2d1f4f8a2b9aa622a7bd88013163f850c261960aff4dbc43442b6e

Contents?: true

Size: 247 Bytes

Versions: 1

Compression:

Stored size: 247 Bytes

Contents

module Slippers
  class BindingWrapper
    def initialize(bindings)
      @bindings = bindings
    end
    def [](method)
      eval('@'+ method.to_s, @bindings)
    end
    
    def to_s
      "BindingWrapper with #{@bindings}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
starapor-slippers-0.0.5 lib/engine/binding_wrapper.rb