Class: CanTango::Rules::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/cantango/rules/scope.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, permit, &block) ⇒ Scope

Returns a new instance of Scope.



6
7
8
9
# File 'lib/cantango/rules/scope.rb', line 6

def initialize name, permit, &block
  @name = name.to_sym
  @permit = permit
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/cantango/rules/scope.rb', line 4

def name
  @name
end

#permitObject (readonly)

Returns the value of attribute permit.



4
5
6
# File 'lib/cantango/rules/scope.rb', line 4

def permit
  @permit
end