Class: SyntaxTree::CLI::STDINItem
- Inherits:
-
Object
- Object
- SyntaxTree::CLI::STDINItem
- 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
#filepath ⇒ Object
62 63 64 |
# File 'lib/syntax_tree/cli.rb', line 62 def filepath :stdin end |
#handler ⇒ Object
58 59 60 |
# File 'lib/syntax_tree/cli.rb', line 58 def handler HANDLERS[".rb"] end |
#source ⇒ Object
66 67 68 |
# File 'lib/syntax_tree/cli.rb', line 66 def source $stdin.read end |