Sha256: ead000ce999df5e87a8d6a3c1748954dcc6d834787adc929c70c1039cacbd7ff

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 Bytes

Contents

# frozen_string_literal: true

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

2 entries across 2 versions & 1 rubygems

Version Path
danica-2.7.7 lib/danica/wrapper/container.rb
danica-2.7.6 lib/danica/wrapper/container.rb