Sha256: 11995d1414ab185da52afe294b2ff0c1841d3314a31c97028f1e250996156121
Contents?: true
Size: 216 Bytes
Versions: 2
Compression:
Stored size: 216 Bytes
Contents
module Megingiard # A node with centered content class CenteredNode def initialize(width, text) @width = width @text = text end def to_s @text.to_s.center(@width) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
megingiard-0.1.0 | lib/megingiard/centered_node.rb |
megingiard-0.0.1 | lib/megingiard/centered_node.rb |