Class: SyntaxTree::CLI::ScriptItem
- Inherits:
-
Object
- Object
- SyntaxTree::CLI::ScriptItem
- Defined in:
- lib/syntax_tree/cli.rb
Overview
An item of work that corresponds to a script content passed via the command line.
Constant Summary collapse
- FILEPATH =
:script
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
- #filepath ⇒ Object
- #handler ⇒ Object
-
#initialize(source) ⇒ ScriptItem
constructor
A new instance of ScriptItem.
Constructor Details
#initialize(source) ⇒ ScriptItem
Returns a new instance of ScriptItem.
63 64 65 |
# File 'lib/syntax_tree/cli.rb', line 63 def initialize(source) @source = source end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
61 62 63 |
# File 'lib/syntax_tree/cli.rb', line 61 def source @source end |