Module: LetsFreckle
- Extended by:
- LetsFreckle
- Included in:
- LetsFreckle
- Defined in:
- lib/letsfreckle/extensions/mash.rb,
lib/letsfreckle.rb,
lib/letsfreckle/tag.rb,
lib/letsfreckle/user.rb,
lib/letsfreckle/entry.rb,
lib/letsfreckle/error.rb,
lib/letsfreckle/project.rb,
lib/letsfreckle/configuration.rb,
lib/letsfreckle/client_resource.rb
Overview
Ruby’s DelegateClass expects the delegate to support the second optional argument to Object#respond_to?. Hashie::Mash doesn’t currently define the method in this way, so we provide a module that is #extend’ed into each Hashie::Mash instance that we create.
Defined Under Namespace
Modules: ClientResource, Extensions Classes: Configuration, CreateError, Entry, Error, FetchError, Project, Tag, User
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
23 24 25 |
# File 'lib/letsfreckle.rb', line 23 def config @config end |
Instance Method Details
#configure(&block) ⇒ Object
25 26 27 28 29 |
# File 'lib/letsfreckle.rb', line 25 def configure(&block) raise ArgumentError, 'configuration block required' unless block @config = Configuration.new @config.instance_eval(&block) end |