Class: App
- Inherits:
-
Object
- Object
- App
- Defined in:
- lib/xmimerge/app.rb
Constant Summary collapse
- @@instance =
App.new
- @@log =
nil
- @@spec =
nil
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
6 7 8 |
# File 'lib/xmimerge/app.rb', line 6 def from @from end |
#to ⇒ Object
Returns the value of attribute to.
7 8 9 |
# File 'lib/xmimerge/app.rb', line 7 def to @to end |
Class Method Details
.instance ⇒ Object
10 11 12 |
# File 'lib/xmimerge/app.rb', line 10 def self.instance return @@instance end |
.logger ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/xmimerge/app.rb', line 20 def self.logger return @@log unless @@log.nil? @@log = Logger.new($stdout) @@log.level = Logger::INFO @@log.formatter = proc do |severity, datetime, progname, msg| "[#{severity}] - #{msg}\n" end @@log end |
.specification ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/xmimerge/app.rb', line 31 def self.specification return @@spec unless @@spec.nil? @@spec = Gem::Specification.new do |s| s.name = 'xmimerge' s.version = '0.0.1' s.date = '2013-08-28' s.summary = "Xmi Merge" s.description = "A helper gem for merge XMI files" s. = ["Marcus Siqueira"] s.email = '[email protected]' s.files = FileList['lib/*.rb', 'lib/**/*.rb'].to_a s.homepage = 'https://github.com/marvinsiq/xmimerge' s.executables << 'xmimerge' end end |
Instance Method Details
#commands_file ⇒ Object
14 15 16 17 |
# File 'lib/xmimerge/app.rb', line 14 def commands_file @commands_file = CommandsFile.new if @commands_file.nil? @commands_file end |