Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/xommelier/core_ext/string.rb

Overview

© Alexander Semyonov, 2011—2013, MIT License # Author: Alexander Semyonov [email protected] #

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_xommelier(value) ⇒ Object



9
10
11
12
# File 'lib/xommelier/core_ext/string.rb', line 9

def self.from_xommelier(value)
  return nil if value.is_a?(NilClass)
  value.to_s
end

Instance Method Details

#to_xommelierObject



14
15
16
# File 'lib/xommelier/core_ext/string.rb', line 14

def to_xommelier
  self
end