Class: BreezyTemplate::Var

Inherits:
Object
  • Object
show all
Defined in:
lib/breezy_template/var.rb

Instance Method Summary collapse

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_jsonObject



11
12
13
# File 'lib/breezy_template/var.rb', line 11

def as_json(*)
  self
end

#encode_jsonObject



15
16
17
# File 'lib/breezy_template/var.rb', line 15

def encode_json(*)
  @var
end

#to_jsonObject



7
8
9
# File 'lib/breezy_template/var.rb', line 7

def to_json(*)
  @var
end