Class: LatexConsec
Instance Method Summary collapse
-
#initialize(*some_parts) ⇒ LatexConsec
constructor
A new instance of LatexConsec.
- #latex ⇒ Object
Methods inherited from Latex
#*, #**, #+, #-, #-@, #/, #glue, #is, #my_json, #ne, #of, #to_ltx, #wrap
Constructor Details
#initialize(*some_parts) ⇒ LatexConsec
Returns a new instance of LatexConsec.
109 110 111 |
# File 'lib/annlat/LaRuby.rb', line 109 def initialize(*some_parts) @parts = some_parts.map{|i| i.to_ltx} end |
Instance Method Details
#latex ⇒ Object
113 114 115 |
# File 'lib/annlat/LaRuby.rb', line 113 def latex @parts.map{|i| i.latex}.join end |