lib/sugarcube/symbol.rb in sugarcube-0.3.1 vs lib/sugarcube/symbol.rb in sugarcube-0.3.2
- old
+ new
@@ -23,11 +23,11 @@
:big.uifont => UIFont
=end
class Symbol
class << self
attr_accessor :devices
- attr_accessor :alignments
+ attr_accessor :textalignments
attr_accessor :linebreakmodes
attr_accessor :baselineadjustments
attr_accessor :orientations
attr_accessor :buttontypes
attr_accessor :bordertypes
@@ -47,11 +47,11 @@
@devices = {
iphone: UIUserInterfaceIdiomPhone,
ipad: UIUserInterfaceIdiomPad,
}
- @alignments = {
+ @textalignments = {
left: UITextAlignmentLeft,
right: UITextAlignmentRight,
center: UITextAlignmentCenter,
}
@@ -234,13 +234,13 @@
return Symbol.devices[self]
end
raise SugarNotFoundException.new(self)
end
- def uialignment
- look_in(Symbol.alignments)
+ def uitextalignment
+ look_in(Symbol.textalignments)
end
- alias :uitextalignment :uialignment
+ alias :uialignment :uitextalignment
def uilinebreakmode
look_in(Symbol.linebreakmodes)
end