Class: LocalModel::BooleanAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/local_model/adapters/boolean_adapter.rb

Class Method Summary collapse

Class Method Details

.read(boolstr) ⇒ Object



7
8
9
# File 'lib/local_model/adapters/boolean_adapter.rb', line 7

def self.read(boolstr)
  boolstr == "true"
end

.write(bool) ⇒ Object



3
4
5
# File 'lib/local_model/adapters/boolean_adapter.rb', line 3

def self.write(bool)
  bool.to_s
end