Sha256: 7da44073f21175802b5e12d4f55f4b967e6cd1128f21343b1e1dc8becc059b59

Contents?: true

Size: 252 Bytes

Versions: 4

Compression:

Stored size: 252 Bytes

Contents

module Compositor
  class Literal < Compositor::Leaf
    attr_accessor :object

    def initialize(view_context, object = {}, args = {})
      super(view_context, args)
      self.object = object
    end

    def to_hash
      object
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
compositor-1.0.1 lib/compositor/literal.rb
compositor-1.0.0 lib/compositor/literal.rb
compositor-0.1.4 lib/compositor/literal.rb
compositor-0.1.3 lib/compositor/literal.rb