Sha256: 2dcaf3ff39a10d8ec2e555886a8ada0f7f8ccf684e4c59100a0d24b7a63ed774
Contents?: true
Size: 553 Bytes
Versions: 14
Compression:
Stored size: 553 Bytes
Contents
# encoding: utf-8 # TODO: move into separate gem with settings module Rango module Configurable # @since 0.0.1 # @example # Project.configure do # self.property = "value" # end # @yield [block] Block which will be evaluated in Project.setttings object. # @return [Rango::Settings::Framework] Returns project settings. def configure(&block) unless self.respond_to?(:settings) raise "#{self.inspect} has to respond to settings" end self.settings.instance_eval(&block) end end end
Version data entries
14 entries across 14 versions & 1 rubygems