Class: Locomotive::Wagon::SiteFinder

Inherits:
Struct
  • Object
show all
Defined in:
lib/locomotive/wagon/commands/serve_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#repositoryObject

Returns the value of attribute repository

Returns:

  • (Object)

    the current value of repository



3
4
5
# File 'lib/locomotive/wagon/commands/serve_command.rb', line 3

def repository
  @repository
end

#requestObject

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



3
4
5
# File 'lib/locomotive/wagon/commands/serve_command.rb', line 3

def request
  @request
end

Instance Method Details

#findObject



3
# File 'lib/locomotive/wagon/commands/serve_command.rb', line 3

def find; repository.first; end