Class: Qipowl::Bowlers::Cmd

Inherits:
Bowler show all
Defined in:
lib/qipowl/bowlers/cmd.rb

Overview

Markup processor for Html output.

This class produces HTML from markup as Markdown does.

Constant Summary

Constants inherited from Bowler

Bowler::SEPARATOR

Instance Attribute Summary

Attributes inherited from Bowler

#in, #out

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Bowler

#add_entity, #block, const_missing, #custom, #execute, #grip, #method_missing, #remove_entity, #respond_to?, #split

Methods included from TypoLogging

#logger, logger

Constructor Details

#initialize(file = nil) ⇒ Cmd

Returns a new instance of Cmd.



11
12
13
14
# File 'lib/qipowl/bowlers/cmd.rb', line 11

def initialize file = nil
  super
  merge_rules file if file
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Qipowl::Bowlers::Bowler

Class Method Details

.execute(str) ⇒ Object



20
21
22
# File 'lib/qipowl/bowlers/cmd.rb', line 20

def self.execute str
  Cmd.new.parse_and_roll str
end

Instance Method Details

#список_файлов(*args) ⇒ Object



16
17
18
# File 'lib/qipowl/bowlers/cmd.rb', line 16

def список_файлов *args
  puts `#{@mapping.linewide(__callee__)} #{args.join(SEPARATOR).unbowl}`
end