Class: CanTango::Rules::Scope
- Inherits:
-
Object
- Object
- CanTango::Rules::Scope
- Defined in:
- lib/cantango/rules/scope.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#permit ⇒ Object
readonly
Returns the value of attribute permit.
Instance Method Summary collapse
-
#initialize(name, permit, &block) ⇒ Scope
constructor
A new instance of Scope.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/cantango/rules/scope.rb', line 4 def name @name end |
#permit ⇒ Object (readonly)
Returns the value of attribute permit.
4 5 6 |
# File 'lib/cantango/rules/scope.rb', line 4 def permit @permit end |