Module: Preflight::Profile::ClassMethods
- Defined in:
- lib/preflight/profile.rb
Instance Method Summary collapse
Instance Method Details
#import(profile) ⇒ Object
21 22 23 24 25 |
# File 'lib/preflight/profile.rb', line 21 def import(profile) profile.rules.each do |array| rules << array.flatten end end |
#profile_name(str) ⇒ Object
17 18 19 |
# File 'lib/preflight/profile.rb', line 17 def profile_name(str) @profile_name = str end |
#rule(*args) ⇒ Object
27 28 29 |
# File 'lib/preflight/profile.rb', line 27 def rule(*args) rules << args.flatten end |
#rules ⇒ Object
31 32 33 |
# File 'lib/preflight/profile.rb', line 31 def rules @rules ||= [] end |