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
60 61 62 |
# File 'lib/syntax_tree/cli.rb', line 60 def filepath :stdin end |
#handler ⇒ Object
56 57 58 |
# File 'lib/syntax_tree/cli.rb', line 56 def handler HANDLERS[".rb"] end |
#source ⇒ Object
64 65 66 |
# File 'lib/syntax_tree/cli.rb', line 64 def source $stdin.read end |