Class: TemplateBuilder::App::Helper::Parameter
- Inherits:
-
Object
- Object
- TemplateBuilder::App::Helper::Parameter
- Defined in:
- lib/template_builder/app/helper/parameter.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Parameter
constructor
A new instance of Parameter.
Constructor Details
#initialize(opts = {}) ⇒ Parameter
Returns a new instance of Parameter.
5 6 7 8 |
# File 'lib/template_builder/app/helper/parameter.rb', line 5 def initialize(opts={}) @name = opts[:name] @priority = opts[:priority] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/template_builder/app/helper/parameter.rb', line 4 def name @name end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority.
3 4 5 |
# File 'lib/template_builder/app/helper/parameter.rb', line 3 def priority @priority end |