acts_as_price 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +6 -7
- data/VERSION +1 -1
- data/acts_as_price.gemspec +100 -0
- data/rdoc/classes/ActiveRecord.html +111 -0
- data/rdoc/classes/ActiveRecord/Acts.html +111 -0
- data/rdoc/classes/ActiveRecord/Acts/Price.html +146 -0
- data/rdoc/classes/ActiveRecord/Acts/Price/ClassMethods.html +176 -0
- data/rdoc/classes/ActsAsPriceHelper.html +314 -0
- data/rdoc/created.rid +1 -0
- data/rdoc/files/README_rdoc.html +205 -0
- data/rdoc/files/lib/acts_as_price_helper_rb.html +101 -0
- data/rdoc/files/lib/acts_as_price_rb.html +101 -0
- data/rdoc/fr_class_index.html +31 -0
- data/rdoc/fr_file_index.html +29 -0
- data/rdoc/fr_method_index.html +34 -0
- data/rdoc/index.html +24 -0
- data/rdoc/rdoc-style.css +208 -0
- metadata +53 -39
data/Rakefile
CHANGED
|
@@ -44,13 +44,12 @@ begin
|
|
|
44
44
|
gem.email = "jeroeningen@gmail.com"
|
|
45
45
|
gem.authors = ["Jeroen van Ingen"]
|
|
46
46
|
gem.add_runtime_dependency 'rails', '3.0.7'
|
|
47
|
-
gem.add_development_dependency 'rspec-rails'
|
|
48
|
-
gem.add_development_dependency 'shoulda-matchers'
|
|
49
|
-
gem.add_development_dependency 'autotest'
|
|
50
|
-
gem.add_development_dependency '
|
|
51
|
-
gem.add_development_dependency '
|
|
52
|
-
gem.add_development_dependency '
|
|
53
|
-
gem.add_development_dependency 'activerecord-nulldb-adapter'
|
|
47
|
+
gem.add_development_dependency 'rspec-rails', '2.5.0'
|
|
48
|
+
gem.add_development_dependency 'shoulda-matchers', '1.0.0.beta2'
|
|
49
|
+
gem.add_development_dependency 'autotest', '4.4.6'
|
|
50
|
+
gem.add_development_dependency 'rcov', '0.9.9'
|
|
51
|
+
gem.add_development_dependency 'metrical', '0.0.5'
|
|
52
|
+
gem.add_development_dependency 'activerecord-nulldb-adapter', '0.2.1'
|
|
54
53
|
end
|
|
55
54
|
rescue LoadError
|
|
56
55
|
puts "Jeweler not available. Install it with: sudo gem install jeweler -s http://gemcutter.org"
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
|
+
# -*- encoding: utf-8 -*-
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |s|
|
|
7
|
+
s.name = %q{acts_as_price}
|
|
8
|
+
s.version = "0.1.1"
|
|
9
|
+
|
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
+
s.authors = ["Jeroen van Ingen"]
|
|
12
|
+
s.date = %q{2011-04-28}
|
|
13
|
+
s.description = %q{A specified database column acts as a price and creates on the fly methods like 'price' and 'price_in_cents'. For more information visit: http://github.com/jeroeningen/acts_as_price}
|
|
14
|
+
s.email = %q{jeroeningen@gmail.com}
|
|
15
|
+
s.extra_rdoc_files = [
|
|
16
|
+
"README.rdoc"
|
|
17
|
+
]
|
|
18
|
+
s.files = [
|
|
19
|
+
"Gemfile",
|
|
20
|
+
"MIT-LICENSE",
|
|
21
|
+
"README.rdoc",
|
|
22
|
+
"Rakefile",
|
|
23
|
+
"VERSION",
|
|
24
|
+
"acts_as_price.gemspec",
|
|
25
|
+
"init.rb",
|
|
26
|
+
"install.rb",
|
|
27
|
+
"lib/acts_as_price.rb",
|
|
28
|
+
"lib/acts_as_price_helper.rb",
|
|
29
|
+
"rdoc/classes/ActiveRecord.html",
|
|
30
|
+
"rdoc/classes/ActiveRecord/Acts.html",
|
|
31
|
+
"rdoc/classes/ActiveRecord/Acts/Price.html",
|
|
32
|
+
"rdoc/classes/ActiveRecord/Acts/Price/ClassMethods.html",
|
|
33
|
+
"rdoc/classes/ActsAsPriceHelper.html",
|
|
34
|
+
"rdoc/created.rid",
|
|
35
|
+
"rdoc/files/README_rdoc.html",
|
|
36
|
+
"rdoc/files/lib/acts_as_price_helper_rb.html",
|
|
37
|
+
"rdoc/files/lib/acts_as_price_rb.html",
|
|
38
|
+
"rdoc/fr_class_index.html",
|
|
39
|
+
"rdoc/fr_file_index.html",
|
|
40
|
+
"rdoc/fr_method_index.html",
|
|
41
|
+
"rdoc/index.html",
|
|
42
|
+
"rdoc/rdoc-style.css",
|
|
43
|
+
"spec/car_spec.rb",
|
|
44
|
+
"spec/fueltype_spec.rb",
|
|
45
|
+
"spec/models/car.rb",
|
|
46
|
+
"spec/models/fueltype.rb",
|
|
47
|
+
"spec/spec_helper.rb",
|
|
48
|
+
"uninstall.rb"
|
|
49
|
+
]
|
|
50
|
+
s.homepage = %q{http://github.com/jeroeningen/acts_as_price}
|
|
51
|
+
s.licenses = ["MIT"]
|
|
52
|
+
s.require_paths = ["lib"]
|
|
53
|
+
s.rubygems_version = %q{1.3.7}
|
|
54
|
+
s.summary = %q{A specified database column acts as a price}
|
|
55
|
+
s.test_files = [
|
|
56
|
+
"spec/car_spec.rb",
|
|
57
|
+
"spec/fueltype_spec.rb",
|
|
58
|
+
"spec/models/car.rb",
|
|
59
|
+
"spec/models/fueltype.rb",
|
|
60
|
+
"spec/spec_helper.rb"
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
if s.respond_to? :specification_version then
|
|
64
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
65
|
+
s.specification_version = 3
|
|
66
|
+
|
|
67
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
68
|
+
s.add_runtime_dependency(%q<rails>, ["= 3.0.7"])
|
|
69
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
|
70
|
+
s.add_runtime_dependency(%q<rails>, ["= 3.0.7"])
|
|
71
|
+
s.add_development_dependency(%q<rspec-rails>, ["= 2.5.0"])
|
|
72
|
+
s.add_development_dependency(%q<shoulda-matchers>, ["= 1.0.0.beta2"])
|
|
73
|
+
s.add_development_dependency(%q<autotest>, ["= 4.4.6"])
|
|
74
|
+
s.add_development_dependency(%q<rcov>, ["= 0.9.9"])
|
|
75
|
+
s.add_development_dependency(%q<metrical>, ["= 0.0.5"])
|
|
76
|
+
s.add_development_dependency(%q<activerecord-nulldb-adapter>, ["= 0.2.1"])
|
|
77
|
+
else
|
|
78
|
+
s.add_dependency(%q<rails>, ["= 3.0.7"])
|
|
79
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
|
80
|
+
s.add_dependency(%q<rails>, ["= 3.0.7"])
|
|
81
|
+
s.add_dependency(%q<rspec-rails>, ["= 2.5.0"])
|
|
82
|
+
s.add_dependency(%q<shoulda-matchers>, ["= 1.0.0.beta2"])
|
|
83
|
+
s.add_dependency(%q<autotest>, ["= 4.4.6"])
|
|
84
|
+
s.add_dependency(%q<rcov>, ["= 0.9.9"])
|
|
85
|
+
s.add_dependency(%q<metrical>, ["= 0.0.5"])
|
|
86
|
+
s.add_dependency(%q<activerecord-nulldb-adapter>, ["= 0.2.1"])
|
|
87
|
+
end
|
|
88
|
+
else
|
|
89
|
+
s.add_dependency(%q<rails>, ["= 3.0.7"])
|
|
90
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
|
91
|
+
s.add_dependency(%q<rails>, ["= 3.0.7"])
|
|
92
|
+
s.add_dependency(%q<rspec-rails>, ["= 2.5.0"])
|
|
93
|
+
s.add_dependency(%q<shoulda-matchers>, ["= 1.0.0.beta2"])
|
|
94
|
+
s.add_dependency(%q<autotest>, ["= 4.4.6"])
|
|
95
|
+
s.add_dependency(%q<rcov>, ["= 0.9.9"])
|
|
96
|
+
s.add_dependency(%q<metrical>, ["= 0.0.5"])
|
|
97
|
+
s.add_dependency(%q<activerecord-nulldb-adapter>, ["= 0.2.1"])
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>Module: ActiveRecord</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="classHeader">
|
|
50
|
+
<table class="header-table">
|
|
51
|
+
<tr class="top-aligned-row">
|
|
52
|
+
<td><strong>Module</strong></td>
|
|
53
|
+
<td class="class-name-in-header">ActiveRecord</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../files/lib/acts_as_price_rb.html">
|
|
59
|
+
lib/acts_as_price.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
|
|
65
|
+
</table>
|
|
66
|
+
</div>
|
|
67
|
+
<!-- banner header -->
|
|
68
|
+
|
|
69
|
+
<div id="bodyContent">
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
<div id="contextContent">
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
<!-- if includes -->
|
|
84
|
+
|
|
85
|
+
<div id="section">
|
|
86
|
+
|
|
87
|
+
<div id="class-list">
|
|
88
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
|
89
|
+
|
|
90
|
+
Module <a href="ActiveRecord/Acts.html" class="link">ActiveRecord::Acts</a><br />
|
|
91
|
+
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<!-- if method_list -->
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<div id="validator-badges">
|
|
107
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
</body>
|
|
111
|
+
</html>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>Module: ActiveRecord::Acts</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="classHeader">
|
|
50
|
+
<table class="header-table">
|
|
51
|
+
<tr class="top-aligned-row">
|
|
52
|
+
<td><strong>Module</strong></td>
|
|
53
|
+
<td class="class-name-in-header">ActiveRecord::Acts</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../../files/lib/acts_as_price_rb.html">
|
|
59
|
+
lib/acts_as_price.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
|
|
65
|
+
</table>
|
|
66
|
+
</div>
|
|
67
|
+
<!-- banner header -->
|
|
68
|
+
|
|
69
|
+
<div id="bodyContent">
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
<div id="contextContent">
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
<!-- if includes -->
|
|
84
|
+
|
|
85
|
+
<div id="section">
|
|
86
|
+
|
|
87
|
+
<div id="class-list">
|
|
88
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
|
89
|
+
|
|
90
|
+
Module <a href="Acts/Price.html" class="link">ActiveRecord::Acts::Price</a><br />
|
|
91
|
+
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<!-- if method_list -->
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<div id="validator-badges">
|
|
107
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
</body>
|
|
111
|
+
</html>
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>Module: ActiveRecord::Acts::Price</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="classHeader">
|
|
50
|
+
<table class="header-table">
|
|
51
|
+
<tr class="top-aligned-row">
|
|
52
|
+
<td><strong>Module</strong></td>
|
|
53
|
+
<td class="class-name-in-header">ActiveRecord::Acts::Price</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../../../files/lib/acts_as_price_rb.html">
|
|
59
|
+
lib/acts_as_price.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
</td>
|
|
63
|
+
</tr>
|
|
64
|
+
|
|
65
|
+
</table>
|
|
66
|
+
</div>
|
|
67
|
+
<!-- banner header -->
|
|
68
|
+
|
|
69
|
+
<div id="bodyContent">
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
<div id="contextContent">
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<div id="method-list">
|
|
80
|
+
<h3 class="section-bar">Methods</h3>
|
|
81
|
+
|
|
82
|
+
<div class="name-list">
|
|
83
|
+
<a href="#M000001">included</a>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
<!-- if includes -->
|
|
91
|
+
|
|
92
|
+
<div id="section">
|
|
93
|
+
|
|
94
|
+
<div id="class-list">
|
|
95
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
|
96
|
+
|
|
97
|
+
Module <a href="Price/ClassMethods.html" class="link">ActiveRecord::Acts::Price::ClassMethods</a><br />
|
|
98
|
+
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
<!-- if method_list -->
|
|
108
|
+
<div id="methods">
|
|
109
|
+
<h3 class="section-bar">Public Class methods</h3>
|
|
110
|
+
|
|
111
|
+
<div id="method-M000001" class="method-detail">
|
|
112
|
+
<a name="M000001"></a>
|
|
113
|
+
|
|
114
|
+
<div class="method-heading">
|
|
115
|
+
<a href="#M000001" class="method-signature">
|
|
116
|
+
<span class="method-name">included</span><span class="method-args">(base)</span>
|
|
117
|
+
</a>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<div class="method-description">
|
|
121
|
+
<p><a class="source-toggle" href="#"
|
|
122
|
+
onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
|
|
123
|
+
<div class="method-source-code" id="M000001-source">
|
|
124
|
+
<pre>
|
|
125
|
+
<span class="ruby-comment cmt"># File lib/acts_as_price.rb, line 5</span>
|
|
126
|
+
5: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">base</span>)
|
|
127
|
+
6: <span class="ruby-identifier">base</span>.<span class="ruby-identifier">extend</span>(<span class="ruby-constant">ClassMethods</span>)
|
|
128
|
+
7: <span class="ruby-keyword kw">end</span>
|
|
129
|
+
</pre>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<div id="validator-badges">
|
|
142
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
143
|
+
</div>
|
|
144
|
+
|
|
145
|
+
</body>
|
|
146
|
+
</html>
|