Class: Motion::Project::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/motion/project/instabug.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#instabug_modeObject

Returns the value of attribute instabug_mode.



85
86
87
# File 'lib/motion/project/instabug.rb', line 85

def instabug_mode
  @instabug_mode
end

Instance Method Details

#instabug {|@instabug| ... } ⇒ Object

Yields:



89
90
91
92
93
# File 'lib/motion/project/instabug.rb', line 89

def instabug
  @instabug ||= InstabugConfig.new(self)
  yield @instabug if block_given? && instabug?
  @instabug
end

#instabug?Boolean

Returns:

  • (Boolean)


95
96
97
# File 'lib/motion/project/instabug.rb', line 95

def instabug?
  @instabug_mode == true
end