Sha256: aad11678521ecec170c5efaa599a36e5e90272cdd6fdeedd1d622b97101d6351

Contents?: true

Size: 171 Bytes

Versions: 24

Compression:

Stored size: 171 Bytes

Contents

require 'active_support'

class LHS::Item < LHS::Proxy

  module Becomes
    extend ActiveSupport::Concern

    def becomes(klass)
      klass.new(_raw)
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
lhs-14.5.0 lib/lhs/concerns/item/becomes.rb
lhs-14.4.0 lib/lhs/concerns/item/becomes.rb
lhs-14.3.4 lib/lhs/concerns/item/becomes.rb
lhs-14.3.3 lib/lhs/concerns/item/becomes.rb
lhs-14.3.2 lib/lhs/concerns/item/becomes.rb
lhs-14.3.1 lib/lhs/concerns/item/becomes.rb
lhs-14.3.0 lib/lhs/concerns/item/becomes.rb
lhs-14.2.0 lib/lhs/concerns/item/becomes.rb
lhs-14.1.1 lib/lhs/concerns/item/becomes.rb
lhs-14.1.0 lib/lhs/concerns/item/becomes.rb
lhs-14.0.3 lib/lhs/concerns/item/becomes.rb
lhs-14.0.2 lib/lhs/concerns/item/becomes.rb
lhs-14.0.1 lib/lhs/concerns/item/becomes.rb
lhs-14.0.0 lib/lhs/concerns/item/becomes.rb
lhs-13.2.3 lib/lhs/concerns/item/becomes.rb
lhs-13.2.2 lib/lhs/concerns/item/becomes.rb
lhs-13.2.1 lib/lhs/concerns/item/becomes.rb
lhs-13.2.0 lib/lhs/concerns/item/becomes.rb
lhs-13.1.0 lib/lhs/concerns/item/becomes.rb
lhs-13.0.1 lib/lhs/concerns/item/becomes.rb