Class: Mo2tex::Pic::Page
Instance Attribute Summary collapse
-
#containers ⇒ Object
readonly
Returns the value of attribute containers.
Attributes inherited from Base
Instance Method Summary collapse
- #<<(cont) ⇒ Object
-
#initialize(n) ⇒ Page
constructor
A new instance of Page.
Methods inherited from Base
Constructor Details
#initialize(n) ⇒ Page
Returns a new instance of Page.
194 195 196 197 |
# File 'lib/mo2tex/pic.rb', line 194 def initialize(n) super(n, '') @containers = [] end |
Instance Attribute Details
#containers ⇒ Object (readonly)
Returns the value of attribute containers.
192 193 194 |
# File 'lib/mo2tex/pic.rb', line 192 def containers @containers end |
Instance Method Details
#<<(cont) ⇒ Object
199 200 201 202 203 |
# File 'lib/mo2tex/pic.rb', line 199 def <<(cont) raise NotAPicContainer, "#{cont.class}" unless cont.is_a?(Container) self.containers << cont return cont end |