Method: Teacup::StylesheetExtension#constrain_right

Defined in:
lib/teacup/stylesheet_extensions/constraints.rb

#constrain_right(x) ⇒ Object



24
25
26
# File 'lib/teacup/stylesheet_extensions/constraints.rb', line 24

def constrain_right(x)
  Teacup::Constraint.new(:self, :right).equals(:superview, :right).plus(x)
end