Class: IpAddressTemplate::Scope
- Inherits:
-
String
- Object
- String
- IpAddressTemplate::Scope
- Defined in:
- lib/mantra/helpers/template_helper.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(options) ⇒ Scope
constructor
A new instance of Scope.
- #is_scope? ⇒ Boolean
Constructor Details
#initialize(options) ⇒ Scope
Returns a new instance of Scope.
4 5 6 7 8 |
# File 'lib/mantra/helpers/template_helper.rb', line 4 def initialize() @value = [:value] @scope = [:scope] super([:scope]) end |
Instance Attribute Details
#scope ⇒ Object
Returns the value of attribute scope.
3 4 5 |
# File 'lib/mantra/helpers/template_helper.rb', line 3 def scope @scope end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/mantra/helpers/template_helper.rb', line 3 def value @value end |
Instance Method Details
#is_scope? ⇒ Boolean
9 10 11 |
# File 'lib/mantra/helpers/template_helper.rb', line 9 def is_scope? true end |