Class: SyntaxTree::CLI::STDINItem

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

Overview

An item of work that corresponds to the stdin content.

Instance Method Summary collapse

Instance Method Details

#filepathObject



62
63
64
# File 'lib/syntax_tree/cli.rb', line 62

def filepath
  :stdin
end

#handlerObject



58
59
60
# File 'lib/syntax_tree/cli.rb', line 58

def handler
  HANDLERS[".rb"]
end

#sourceObject



66
67
68
# File 'lib/syntax_tree/cli.rb', line 66

def source
  $stdin.read
end