Class: TemplateBuilder::App::Helper::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/template_builder/app/helper/parameter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/template_builder/app/helper/parameter.rb', line 4

def name
  @name
end

#priorityObject (readonly)

Returns the value of attribute priority.



3
4
5
# File 'lib/template_builder/app/helper/parameter.rb', line 3

def priority
  @priority
end