Class: Danica::Wrapper::Container
- Inherits:
-
Object
- Object
- Danica::Wrapper::Container
- Includes:
- Common
- Defined in:
- lib/danica/wrapper/container.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(content) ⇒ Container
constructor
A new instance of Container.
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
#content ⇒ Object
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 |