module Shapeable
Constants
- CONFIG_FILE
- VERSION
Attributes
configuration_data[RW]
Public Class Methods
configuration()
click to toggle source
# File lib/shapeable.rb, line 27 def configuration self.configuration_data ||= Shapeable::Configuration.new end
configure(file = nil) { |configuration| ... }
click to toggle source
# File lib/shapeable.rb, line 13 def configure(file = nil) configuration if block_given? yield(configuration) else if File.exists?(CONFIG_FILE) file ||= CONFIG_FILE require file else raise ArgumentError, "Configure requires a block or the existance of a #{CONFIG_FILE} in your project" end end end