Class: Pango::AttrType

Inherits:
Object
  • Object
show all
Defined in:
lib/pango/attr-type.rb

Instance Method Summary collapse

Instance Method Details

#to_classObject



19
20
21
22
23
24
25
# File 'lib/pango/attr-type.rb', line 19

def to_class
  class_name = "Attr"
  nick.split("-").each do |component|
    class_name << component.capitalize
  end
  Pango.const_get(class_name)
end