Module: Get::Smart
- Defined in:
- lib/get/smart.rb,
lib/get/smart/topics.rb,
lib/get/smart/railtie.rb,
lib/get/smart/version.rb,
lib/get/smart/ai/verifier.rb,
lib/get/smart/ai/generator.rb,
lib/generators/get/smart/install_generator.rb
Defined Under Namespace
Modules: Ai, Generators Classes: AppContext, Collection, LearningPath, Logic, Memory, Railtie, Tip, Topic, Topics
Constant Summary collapse
- FREQUENCIES =
{ always: -> { 0.seconds }, half_hourly: -> { 30.minutes }, hourly: -> { 1.hour }, every_two_hours: -> { 2.hours }, every_three_hours: -> { 3.hours }, every_four_hours: -> { 4.hours }, every_five_hours: -> { 5.hours }, every_six_hours: -> { 6.hours }, every_seven_hours: -> { 7.hours }, every_eight_hours: -> { 8.hours }, every_nine_hours: -> { 9.hours }, every_ten_hours: -> { 10.hours }, every_eleven_hours: -> { 11.hours }, every_twelve_hours: -> { 12.hours }, daily: -> { 1.day }, every_two_days: -> { 2.days }, weekly: -> { 1.week } }
- VERSION =
"0.1.0"
Class Method Summary collapse
- .log(message) ⇒ Object
- .root_path ⇒ Object
-
.setup {|_self| ... } ⇒ Object
Yield configuration to block for initializer.
Class Method Details
.log(message) ⇒ Object
22 23 24 25 |
# File 'lib/get/smart.rb', line 22 def log() called_method = caller_locations(1, 1).first.label puts "#{called_method} -> #{}" if debug end |
.root_path ⇒ Object
18 19 20 |
# File 'lib/get/smart.rb', line 18 def root_path File.("../../..", __FILE__) end |
.setup {|_self| ... } ⇒ Object
Yield configuration to block for initializer
28 29 30 |
# File 'lib/get/smart.rb', line 28 def setup yield self if block_given? end |