Class: Negative
Overview
represents -@expr
Instance Attribute Summary collapse
-
#expr ⇒ Object
readonly
Returns the value of attribute expr.
Instance Method Summary collapse
-
#initialize(some_expr) ⇒ Negative
constructor
A new instance of Negative.
- #latex ⇒ Object
Methods inherited from Latex
#*, #**, #+, #-, #-@, #/, #glue, #is, #my_json, #ne, #of, #to_ltx, #wrap
Constructor Details
Instance Attribute Details
#expr ⇒ Object (readonly)
Returns the value of attribute expr.
87 88 89 |
# File 'lib/annlat/LaRuby.rb', line 87 def expr @expr end |
Instance Method Details
#latex ⇒ Object
93 94 95 |
# File 'lib/annlat/LaRuby.rb', line 93 def latex '-' + @expr.latex end |