Class: LatexSet

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

Instance Method Summary collapse

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

#latexObject



233
234
235
# File 'lib/annlat/LaRuby.rb', line 233

def latex
  "{" + @set.join(", ") + "}"
end