Sha256: 0d4c3358f607490405108fae563a55109477462885da4454e7935594c721dde4

Contents?: true

Size: 281 Bytes

Versions: 3

Compression:

Stored size: 281 Bytes

Contents

require 'hashie/mash'

module Minarai
  class Variable
    def initialize(variable)
      @variable = variable
    end

    def to_mash
      MashedVariable.new(@variable)
    end

    class MashedVariable < Hashie::Mash
      def binding
        super
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
minarai-0.0.3 lib/minarai/variable.rb
minarai-0.0.2 lib/minarai/variable.rb
minarai-0.0.1 lib/minarai/variable.rb