Class: Bali::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/bali/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



5
6
7
8
9
10
11
# File 'lib/bali/config.rb', line 5

def initialize
  if Rails.respond_to?(:root) && Rails.root
    @rules_path = Rails.root.join("app", "rules")
  end

  @suffix = "Rules"
end

Instance Attribute Details

#rules_pathObject

Returns the value of attribute rules_path.



2
3
4
# File 'lib/bali/config.rb', line 2

def rules_path
  @rules_path
end

#suffixObject

Returns the value of attribute suffix.



3
4
5
# File 'lib/bali/config.rb', line 3

def suffix
  @suffix
end