Sha256: 1624199b16f74d5ede9ce2ba0ae460ad9135b277bb614560fada852f3dace594

Contents?: true

Size: 304 Bytes

Versions: 31

Compression:

Stored size: 304 Bytes

Contents

module Smithy
  module Liquid
    module Drops
      class Base < ::Liquid::Drop
        attr_reader :_source
        def initialize(source)
          @_source = source
        end

        def id
          (@_source.respond_to?(:id) ? @_source.id : nil) || 'new'
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
smithycms-0.8.1 lib/smithy/liquid/drops/base.rb
smithycms-0.7.3 lib/smithy/liquid/drops/base.rb
smithycms-0.7.2 lib/smithy/liquid/drops/base.rb
smithycms-0.7.1 lib/smithy/liquid/drops/base.rb
smithycms-0.7.0 lib/smithy/liquid/drops/base.rb
smithycms-0.6.10 lib/smithy/liquid/drops/base.rb
smithycms-0.5.99.3 lib/smithy/liquid/drops/base.rb
smithycms-0.6.9 lib/smithy/liquid/drops/base.rb
smithycms-0.6.7 lib/smithy/liquid/drops/base.rb
smithycms-0.6.6 lib/smithy/liquid/drops/base.rb
smithycms-0.6.5 lib/smithy/liquid/drops/base.rb
smithycms-0.6.4 lib/smithy/liquid/drops/base.rb
smithycms-0.6.3 lib/smithy/liquid/drops/base.rb
smithycms-0.5.99.2 lib/smithy/liquid/drops/base.rb
smithycms-0.5.99.1 lib/smithy/liquid/drops/base.rb
smithycms-0.5.99 lib/smithy/liquid/drops/base.rb
smithycms-0.6.2 lib/smithy/liquid/drops/base.rb
smithycms-0.6.1 lib/smithy/liquid/drops/base.rb
smithycms-0.5.2 lib/smithy/liquid/drops/base.rb
smithycms-0.6.0 lib/smithy/liquid/drops/base.rb