Sha256: 396a9ca92bcc74a448327a2a6077ac8f96029904b31282b589a6941a46446b8e

Contents?: true

Size: 514 Bytes

Versions: 5

Compression:

Stored size: 514 Bytes

Contents

module Danica
  class Wrapper::Container
    include Common
    attr_accessor :content

    delegate :to_f, :contentd?, :to, :to_tex, :to_gnu, :priority, :grouped?,
             :signaled?, :constant?, :valued?, :*, :+, :-, :/, :**,
             :variables, :variable?, to: :content

    default_value :container?, true

    def initialize(content)
      @content = content
    end

    def ==(other)
      return content == other unless other.is_a?(self.class)
      content == other.content
    end
  end
end



Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
danica-2.7.1 lib/danica/wrapper/container.rb
danica-2.6.4 lib/danica/wrapper/container.rb
danica-2.6.3 lib/danica/wrapper/container.rb
danica-2.6.2 lib/danica/wrapper/container.rb
danica-2.6.1 lib/danica/wrapper/container.rb