Sha256: fac8d2995d0c4c55f6e9304ed37cbdefbab90116a47e6216f6bbbc05111705d1
Contents?: true
Size: 316 Bytes
Versions: 2
Compression:
Stored size: 316 Bytes
Contents
# -*- encoding : utf-8 -*- require 'megingiard/bold_sequence' require 'megingiard/reset_sequence' module Megingiard # A node that makes all its children bold class BoldNode def initialize(child) @child = child end def to_s "#{BOLD_SEQUENCE}#{@child}#{RESET_SEQUENCE}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
megingiard-0.1.0 | lib/megingiard/bold_node.rb |
megingiard-0.0.1 | lib/megingiard/bold_node.rb |