Module: Preflight::Profile::ClassMethods

Defined in:
lib/preflight/profile.rb

Instance Method Summary collapse

Instance Method Details

#import(profile) ⇒ Object



22
23
24
25
26
# File 'lib/preflight/profile.rb', line 22

def import(profile)
  profile.rules.each do |array|
    rules << array
  end
end

#profile_name(str) ⇒ Object



18
19
20
# File 'lib/preflight/profile.rb', line 18

def profile_name(str)
  @profile_name = str
end

#rule(*args) ⇒ Object



28
29
30
# File 'lib/preflight/profile.rb', line 28

def rule(*args)
  rules << args
end

#rulesObject



32
33
34
# File 'lib/preflight/profile.rb', line 32

def rules
  @rules ||= []
end