Method: StringFormat#initialize

Defined in:
lib/stringformat.rb

#initialize(*args) ⇒ StringFormat

takes a listing of specifications and procs. For a description of how to define formats, see Format#add_format.



71
72
73
74
75
76
77
# File 'lib/stringformat.rb', line 71

def initialize(*args)
    @format_table = args[0] || { }
    @format_table.to_hash unless @format_table.respond_to? :keys
    @format_leader = "%"

    super ""
end