Class: Ssource::Command::Show

Inherits:
Ssource::Command show all
Defined in:
lib/ssource/command/show.rb

Instance Attribute Summary

Attributes inherited from Ssource::Command

#file_path

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Show

Returns a new instance of Show.



10
11
12
13
# File 'lib/ssource/command/show.rb', line 10

def initialize(argv)
  self.file_path = argv.shift_argument
  super
end

Instance Method Details

#runObject



15
16
17
18
# File 'lib/ssource/command/show.rb', line 15

def run
  @root = Ssource::Source.from file_path
  puts sections * "\n\n"
end