class Orgy::OrgBulletList
OrgBulletList
¶ ↑
Org-mode ordered lists Creates a bulleted list of items
Public Instance Methods
to_s()
click to toggle source
Iterates though the container’s objects and prints a single dash before the contained element. Afterwards, it prints the child elements if any
Calls superclass method
Orgy::OrgObject#to_s
# File lib/orgy/org_bullet_list.rb, line 11 def to_s str = "" @data[:container].each do | bullet_point | @indent.times{ str << @indent_delimiter } str << "- " << bullet_point.to_s << "\n" end str << super end