class Crosby::Configuration
Attributes
app_name[RW]
export_path[RW]
Public Class Methods
new()
click to toggle source
# File lib/crosby/configuration.rb, line 7 def initialize self.app_name = SecureRandom.hex(4) self.export_path = "tmp/crosby" end
Public Instance Methods
config(&block)
click to toggle source
# File lib/crosby/configuration.rb, line 12 def config(&block) block.call(self) if block_given? to_hsh end
to_hsh()
click to toggle source
# File lib/crosby/configuration.rb, line 17 def to_hsh { :app_name => app_name, :export_path => export_path } end
Also aliased as: to_h