class SyntaxTree::CLI::ScriptItem

An item of work that corresponds to a script content passed via the command line.

Attributes

source[R]

Public Class Methods

new(source) click to toggle source
# File lib/syntax_tree/cli.rb, line 66
def initialize(source)
  @source = source
end

Public Instance Methods

filepath() click to toggle source
# File lib/syntax_tree/cli.rb, line 74
def filepath
  :script
end
handler() click to toggle source
# File lib/syntax_tree/cli.rb, line 70
def handler
  HANDLERS[".rb"]
end
writable?() click to toggle source
# File lib/syntax_tree/cli.rb, line 78
def writable?
  false
end