Class: Monolens::Str::Strip

Inherits:
Object
  • Object
show all
Includes:
Lens
Defined in:
lib/monolens/str/strip.rb

Instance Attribute Summary

Attributes included from Lens

#options

Instance Method Summary collapse

Methods included from Lens

#fetch_on, #initialize, #is_array!, #is_enumerable!, #is_hash!, #is_string!, #option

Instance Method Details

#call(arg, *rest) ⇒ Object



6
7
8
# File 'lib/monolens/str/strip.rb', line 6

def call(arg, *rest)
  arg.to_s.strip
end