Module: Shomen

Defined in:
lib/shomen/cli.rb,
lib/shomen/yard.rb,
lib/shomen/cli/rdoc.rb,
lib/shomen/cli/yard.rb,
lib/shomen/metadata.rb,
lib/shomen/cli/tomdoc.rb,
lib/shomen/model/class.rb,
lib/shomen/cli/abstract.rb,
lib/shomen/model/method.rb,
lib/shomen/model/module.rb,
lib/shomen/model/script.rb,
lib/shomen/model/abstract.rb,
lib/shomen/model/constant.rb,
lib/shomen/model/document.rb,
lib/shomen/model/attribute.rb,
lib/shomen/model/interface.rb

Defined Under Namespace

Modules: CLI, Model Classes: Metadata, YardAdaptor

Class Method Summary collapse

Class Method Details

.cli(*argv) ⇒ Object

Command line interface. (YARD oriented for now).



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/shomen/cli.rb', line 4

def self.cli(*argv)
  case cmd = argv.shift
  when 'server'
    require 'shomen/server'
  when 'tomdoc'
    require 'shomen/cli/tomdoc'
    CLI::TomDocCommand.run(*argv)
  when 'yard'
    require 'shomen/cli/yard'
    CLI::YARDCommand.run(*argv)
  when 'rdoc'
    require 'shomen/cli/rdoc'
    CLI::RDocCommand.run(*argv)
  else
    abort "error: unrecognized command - #{cmd}"
  end
end

.source=(bool) ⇒ Object



116
117
118
# File 'lib/shomen/cli/abstract.rb', line 116

def self.source=(bool)
  @source = bool
end

.source?Boolean

Returns:

  • (Boolean)


111
112
113
# File 'lib/shomen/cli/abstract.rb', line 111

def self.source?
  @source
end