Module: RassKey::String

Defined in:
lib/rasskey/extensions/string.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
# File 'lib/rasskey/extensions/string.rb', line 3

def self.included(base)
  base.class_eval do
    attr_accessor :padding
    attr_accessor :glyph
  end
end

Instance Method Details

#to_box(options = {}) ⇒ Object



10
11
12
# File 'lib/rasskey/extensions/string.rb', line 10

def to_box(options = {})
  RassKey::Box.new(options).draw(self)
end