Class: Spidy::Shell

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

Overview

spidy Shell

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Shell

Returns a new instance of Shell.



7
8
9
# File 'lib/spidy/shell.rb', line 7

def initialize(path)
  @definition_file = Spidy::DefinitionFile.open(path)
end

Instance Method Details

#command_lineObject



15
16
17
# File 'lib/spidy/shell.rb', line 15

def command_line
  Spidy::CommandLine.new(@definition_file)
end

#interactiveObject



11
12
13
# File 'lib/spidy/shell.rb', line 11

def interactive
  Pry.start(Spidy::Console.new(@definition_file))
end