Class: BreezyTemplate::Var
- Inherits:
-
Object
- Object
- BreezyTemplate::Var
- Defined in:
- lib/breezy_template/var.rb
Instance Method Summary collapse
- #as_json ⇒ Object
- #encode_json ⇒ Object
-
#initialize(var) ⇒ Var
constructor
A new instance of Var.
- #to_json ⇒ Object
Constructor Details
#initialize(var) ⇒ Var
Returns a new instance of Var.
3 4 5 |
# File 'lib/breezy_template/var.rb', line 3 def initialize(var) @var = var end |
Instance Method Details
#as_json ⇒ Object
11 12 13 |
# File 'lib/breezy_template/var.rb', line 11 def as_json(*) self end |
#encode_json ⇒ Object
15 16 17 |
# File 'lib/breezy_template/var.rb', line 15 def encode_json(*) @var end |
#to_json ⇒ Object
7 8 9 |
# File 'lib/breezy_template/var.rb', line 7 def to_json(*) @var end |