lib/gratan/dsl/context/on.rb in gratan-0.1.7 vs lib/gratan/dsl/context/on.rb in gratan-0.1.8

- old
+ new

@@ -1,11 +1,15 @@ class Gratan::DSL::Context::On include Gratan::DSL::Validator attr_reader :result - def initialize(user, host, object, &block) - @error_identifier = "User `#{user}@#{host}` on `#{object}`" + def initialize(user, host, object, options, &block) + @object_identifier = "User `#{user}@#{host}` on `#{object}`" + @user = user + @host = host + @object = object + @options = options @result = [] instance_eval(&block) end def grant(name, options = {})