Class: Danica::Wrapper::Container

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/danica/wrapper/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common

#formatted, #gnu, #tex, #to, #to_f, #to_gnu, #to_tex, #valued?

Constructor Details

#initialize(content) ⇒ Container

Returns a new instance of Container.



14
15
16
# File 'lib/danica/wrapper/container.rb', line 14

def initialize(content)
  @content = content
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



6
7
8
# File 'lib/danica/wrapper/container.rb', line 6

def content
  @content
end

Instance Method Details

#==(other) ⇒ Object



18
19
20
21
22
# File 'lib/danica/wrapper/container.rb', line 18

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

  content == other.content
end