Class: Sourcerer

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

Defined Under Namespace

Classes: SourceType

Constant Summary collapse

GIT_GITHUB_SHORTHAND_REGEX =
/^[A-Za-z0-9-]+\/[A-Za-z0-9\-_.]+$/

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#destinationObject (readonly)

Returns the value of attribute destination


8
9
10
# File 'lib/sourcerer.rb', line 8

def destination
  @destination
end

#optionsObject (readonly)

Returns the value of attribute options


8
9
10
# File 'lib/sourcerer.rb', line 8

def options
  @options
end

#sourceObject (readonly)

Returns the value of attribute source


8
9
10
# File 'lib/sourcerer.rb', line 8

def source
  @source
end

#typeObject (readonly)

Returns the value of attribute type


8
9
10
# File 'lib/sourcerer.rb', line 8

def type
  @type
end

Instance Method Details

#files(*args) ⇒ Object

pass method through to source type


13
# File 'lib/sourcerer.rb', line 13

def files *args; @type.files *args; end