Class: String

Inherits:
Object show all
Defined in:
lib/dooby/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#first_charObject



49
50
51
# File 'lib/dooby/core_ext.rb', line 49

def first_char
  self[0, 1]
end

#only_tags(*wanted_tags) ⇒ Object



45
46
47
# File 'lib/dooby/core_ext.rb', line 45

def only_tags(*wanted_tags)
  split(' ').only_tags(*wanted_tags)
end