Class: Mirah::Commands::Parse

Inherits:
Base
  • Object
show all
Defined in:
lib/mirah/commands/parse.rb

Instance Attribute Summary

Attributes inherited from Base

#args, #argument_processor, #state

Instance Method Summary collapse

Methods inherited from Base

#execute_base, #initialize

Constructor Details

This class inherits a constructor from Mirah::Commands::Base

Instance Method Details

#command_nameObject



29
30
31
# File 'lib/mirah/commands/parse.rb', line 29

def command_name
  :parse
end

#executeObject



21
22
23
24
25
26
27
# File 'lib/mirah/commands/parse.rb', line 21

def execute
  execute_base do
    parser = Mirah::Parser.new(@state, false)
    
    parser.parse_from_args(args)
  end
end