Class: Goodcheck::Glob

Inherits:
Object
  • Object
show all
Defined in:
lib/goodcheck/glob.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pattern:, encoding:) ⇒ Glob

Returns a new instance of Glob.



6
7
8
9
# File 'lib/goodcheck/glob.rb', line 6

def initialize(pattern:, encoding:)
  @pattern = pattern
  @encoding = encoding
end

Instance Attribute Details

#encodingObject (readonly)

Returns the value of attribute encoding.



4
5
6
# File 'lib/goodcheck/glob.rb', line 4

def encoding
  @encoding
end

#patternObject (readonly)

Returns the value of attribute pattern.



3
4
5
# File 'lib/goodcheck/glob.rb', line 3

def pattern
  @pattern
end