Class: Posgra::DSL::Grants
- Inherits:
-
Object
- Object
- Posgra::DSL::Grants
- Includes:
- Logger::Helper, TemplateHelper, Utils::Helper
- Defined in:
- lib/posgra/dsl/grants.rb
Defined Under Namespace
Classes: Role
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path, options = {}, &block) ⇒ Grants
constructor
A new instance of Grants.
Methods included from Utils::Helper
Methods included from TemplateHelper
Methods included from Logger::Helper
Constructor Details
#initialize(path, options = {}, &block) ⇒ Grants
Returns a new instance of Grants.
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/posgra/dsl/grants.rb', line 14 def initialize(path, = {}, &block) @path = path @options = @result = {} @context = Hashie::Mash.new( :path => path, :options => , :templates => {}, ) instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
12 13 14 |
# File 'lib/posgra/dsl/grants.rb', line 12 def result @result end |
Class Method Details
.eval(dsl, path, options = {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/posgra/dsl/grants.rb', line 6 def self.eval(dsl, path, = {}) self.new(path, ) do eval(dsl, binding, path) end end |