Class: SearchCraft::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/searchcraft/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#debugObject



15
16
17
# File 'lib/searchcraft/configuration.rb', line 15

def debug
  @debug || ENV["SEARCHCRAFT_DEBUG"] == "true"
end

#disable_annotateObject

Returns the value of attribute disable_annotate.



4
5
6
# File 'lib/searchcraft/configuration.rb', line 4

def disable_annotate
  @disable_annotate
end

#disable_autorebuildObject

Returns the value of attribute disable_autorebuild.



3
4
5
# File 'lib/searchcraft/configuration.rb', line 3

def disable_autorebuild
  @disable_autorebuild
end

#explicit_builder_class_namesObject

Returns the value of attribute explicit_builder_class_names.



7
8
9
# File 'lib/searchcraft/configuration.rb', line 7

def explicit_builder_class_names
  @explicit_builder_class_names
end

#explicit_builder_classesObject

Returns the value of attribute explicit_builder_classes.



6
7
8
# File 'lib/searchcraft/configuration.rb', line 6

def explicit_builder_classes
  @explicit_builder_classes
end

#explicit_model_class_namesObject

Returns the value of attribute explicit_model_class_names.



8
9
10
# File 'lib/searchcraft/configuration.rb', line 8

def explicit_model_class_names
  @explicit_model_class_names
end

#view_hash_store_table_nameObject

Returns the value of attribute view_hash_store_table_name.



9
10
11
# File 'lib/searchcraft/configuration.rb', line 9

def view_hash_store_table_name
  @view_hash_store_table_name
end

Instance Method Details

#autorebuild?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/searchcraft/configuration.rb', line 11

def autorebuild?
  !disable_autorebuild
end