Class: LatexSet
Instance Method Summary collapse
-
#initialize(s) ⇒ LatexSet
constructor
A new instance of LatexSet.
- #latex ⇒ Object
Methods inherited from Latex
#*, #**, #+, #-, #-@, #/, #glue, #is, #my_json, #ne, #of, #to_ltx, #wrap
Constructor Details
#initialize(s) ⇒ LatexSet
Returns a new instance of LatexSet.
229 230 231 |
# File 'lib/annlat/LaRuby.rb', line 229 def initialize(s) @set = s.to_a end |
Instance Method Details
#latex ⇒ Object
233 234 235 |
# File 'lib/annlat/LaRuby.rb', line 233 def latex "{" + @set.join(", ") + "}" end |