class Megingiard::BoldNode
A node that makes all its children bold
Public Class Methods
new(child)
click to toggle source
# File lib/megingiard/bold_node.rb, line 7 def initialize(child) @child = child end
Public Instance Methods
to_s()
click to toggle source
# File lib/megingiard/bold_node.rb, line 11 def to_s "#{BOLD_SEQUENCE}#{@child}#{RESET_SEQUENCE}" end