Class: Pathname

Inherits:
Object
  • Object
show all
Defined in:
lib/middleman-sprockets/pathname_extensions.rb

Instance Method Summary collapse

Instance Method Details

#end_with?(*paths) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/middleman-sprockets/pathname_extensions.rb', line 7

def end_with?(*paths)
  to_s.end_with?(*paths)
end

#start_with?(*paths) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/middleman-sprockets/pathname_extensions.rb', line 3

def start_with?(*paths)
  to_s.start_with?(*paths)
end