class SyntaxTree::CLI::STDINItem

An item of work that correspond to the content passed in via stdin.

Public Instance Methods

filepath() click to toggle source
# File lib/syntax_tree/cli.rb, line 89
def filepath
  :stdin
end
handler() click to toggle source
# File lib/syntax_tree/cli.rb, line 85
def handler
  HANDLERS[".rb"]
end
source() click to toggle source
# File lib/syntax_tree/cli.rb, line 93
def source
  $stdin.read
end
writable?() click to toggle source
# File lib/syntax_tree/cli.rb, line 97
def writable?
  false
end