Class: Vinyl::UserVariables
- Inherits:
-
Object
- Object
- Vinyl::UserVariables
- Defined in:
- lib/vinyl/variables.rb
Instance Attribute Summary collapse
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize ⇒ UserVariables
constructor
A new instance of UserVariables.
- #put(variable) ⇒ Object
Constructor Details
#initialize ⇒ UserVariables
33 34 35 |
# File 'lib/vinyl/variables.rb', line 33 def initialize @variables = Hash.new end |
Instance Attribute Details
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
31 32 33 |
# File 'lib/vinyl/variables.rb', line 31 def variables @variables end |
Instance Method Details
#put(variable) ⇒ Object
37 38 39 |
# File 'lib/vinyl/variables.rb', line 37 def put(variable) @variables.merge!(variable) end |