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.
183 184 185 186 |
# File 'lib/mo2tex/pic.rb', line 183 def initialize(n) super(n, '') @containers = [] end |
Instance Attribute Details
#containers ⇒ Object (readonly)
Returns the value of attribute containers.
181 182 183 |
# File 'lib/mo2tex/pic.rb', line 181 def containers @containers end |
Instance Method Details
#<<(cont) ⇒ Object
188 189 190 191 192 |
# File 'lib/mo2tex/pic.rb', line 188 def <<(cont) raise NotAPicContainer, "#{cont.class}" unless cont.is_a?(Container) self.containers << cont return cont end |