Sha256: af7abfaddbc00eeafba2578666dc8325ff83d66ab8789739bfef445549b87442
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
module Teacup module_function # Returns all the subviews of `target` that have a stylename. `target` is not # included in the list. Used by the motion-layout integration in layout.rb. def get_styled_subviews(target) target.subviews.select { |v| v.stylename } end def to_instance(class_or_instance) if class_or_instance.is_a? Class return class_or_instance.new else return class_or_instance end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
teacup-2.1.2 | lib/teacup/teacup_util.rb |