Methods
Class Public methods
new(compound, type)
Link
# File ext/tk/lib/tk/font.rb, line 148 def initialize(compound, type) unless compound.kind_of?(TkFont) fail ArgumentError, "a TkFont object is expected for the 1st argument" end @compound = compound case type when 'kanji', 'latin', 'ascii' @type = type when :kanji, :latin, :ascii @type = type.to_s else fail ArgumentError, "unknown type '#{type}'" end end
Instance Public methods
[](slot)
Link
[]=(slot, value)
Link
clone()
Link
dup()
Link
font()
Link
method_missing(id, *args)
Link
to_eval()
Link