Class: String

Inherits:
Object show all
Defined in:
lib/bitclust/parseutils.rb,
lib/bitclust/compat.rb,
lib/bitclust/compat.rb,
lib/bitclust/compat.rb

Overview

reopen

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationObject

Returns the value of attribute location.



14
15
16
# File 'lib/bitclust/parseutils.rb', line 14

def location
  @location
end

Instance Method Details

#match?(pattern, pos = 0) ⇒ Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/bitclust/compat.rb', line 32

def match?(pattern, pos = 0)
  !match(pattern, pos).nil?
end