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



60
61
62
# File 'lib/syntax_tree/cli.rb', line 60

def filepath
  :stdin
end

#handlerObject



56
57
58
# File 'lib/syntax_tree/cli.rb', line 56

def handler
  HANDLERS[".rb"]
end

#sourceObject



64
65
66
# File 'lib/syntax_tree/cli.rb', line 64

def source
  $stdin.read
end