Module: One9
- Extended by:
- One9
- Included in:
- One9
- Defined in:
- lib/one9.rb,
lib/one9/rc.rb,
lib/one9/spy.rb,
lib/one9/method.rb,
lib/one9/report.rb,
lib/one9/runner.rb,
lib/one9/version.rb,
lib/one9/report_method.rb
Defined Under Namespace
Modules: Rc, Report, Runner, Spy Classes: Method, NoReportError, ReportMethod
Constant Summary collapse
- VERSION =
'0.1.5'
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#dir ⇒ Object
Returns the value of attribute dir.
-
#rc ⇒ Object
Returns the value of attribute rc.
-
#stacks ⇒ Object
Returns the value of attribute stacks.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
12 13 14 |
# File 'lib/one9.rb', line 12 def config @config end |
#dir ⇒ Object
Returns the value of attribute dir.
12 13 14 |
# File 'lib/one9.rb', line 12 def dir @dir end |
#rc ⇒ Object
Returns the value of attribute rc.
12 13 14 |
# File 'lib/one9.rb', line 12 def rc @rc end |
#stacks ⇒ Object
Returns the value of attribute stacks.
12 13 14 |
# File 'lib/one9.rb', line 12 def stacks @stacks end |
Instance Method Details
#it ⇒ Object
20 21 22 23 24 |
# File 'lib/one9.rb', line 20 def it meths = load_methods Spy.setup meths Report.later(meths, stacks) end |
#load_methods ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/one9.rb', line 26 def load_methods # ensure all changes can be loaded %w{date time}.each {|e| require e } Rc.load File.dirname(__FILE__) + '/one9/defaults.rb' Rc.load(rc) if File.exists?(rc) Rc.meths end |
#spy(meth) ⇒ Object
16 17 18 |
# File 'lib/one9.rb', line 16 def spy(meth) stacks[meth] << caller[1..-1] end |