Class: Wrapped

Inherits:
Latex show all
Defined in:
lib/annlat/LaRuby.rb

Overview

should add support for custom wrappings

Instance Method Summary collapse

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

#latexObject



81
82
83
# File 'lib/annlat/LaRuby.rb', line 81

def latex
  '(' + @wrapee.latex + ')'
end

#unwrapObject



77
78
79
# File 'lib/annlat/LaRuby.rb', line 77

def unwrap
  @wrapee
end