Class: Wrapped
Overview
should add support for custom wrappings
Instance Method Summary collapse
-
#initialize(some_expr) ⇒ Wrapped
constructor
A new instance of Wrapped.
- #latex ⇒ Object
- #unwrap ⇒ Object
Methods inherited from Latex
#*, #**, #+, #-, #-@, #/, #glue, #is, #my_json, #ne, #of, #to_ltx, #wrap
Constructor Details
#initialize(some_expr) ⇒ Wrapped
Returns a new instance of Wrapped.
73 74 75 |
# File 'lib/annlat/LaRuby.rb', line 73 def initialize(some_expr) @wrapee = some_expr.to_ltx end |
Instance Method Details
#latex ⇒ Object
81 82 83 |
# File 'lib/annlat/LaRuby.rb', line 81 def latex '(' + @wrapee.latex + ')' end |
#unwrap ⇒ Object
77 78 79 |
# File 'lib/annlat/LaRuby.rb', line 77 def unwrap @wrapee end |