Sha256: a7d9216e6c7b718b296f4ea3359229afb0d8e61c11ee386d1bdd160091b95aae

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 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?, :*, :+, :-, :/, :**, 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

1 entries across 1 versions & 1 rubygems

Version Path
danica-2.4.4 lib/danica/wrapper/container.rb