Class: Warped::Filter::Boolean::Value

Inherits:
Value
  • Object
show all
Defined in:
lib/warped/api/filter/boolean.rb

Instance Method Summary collapse

Instance Method Details

#html_valueObject



30
31
32
33
34
35
36
37
# File 'lib/warped/api/filter/boolean.rb', line 30

def html_value
  case value.class
  when TrueClass
    "true"
  when FalseClass
    "false"
  end
end