Class: Gemical::Commands::Bundle::Evaluator
- Inherits:
-
Object
- Object
- Gemical::Commands::Bundle::Evaluator
show all
- Defined in:
- lib/gemical/commands/bundle.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(file) ⇒ Evaluator
Returns a new instance of Evaluator.
6
7
8
9
|
# File 'lib/gemical/commands/bundle.rb', line 6
def initialize(file)
@sources = []
instance_eval file.read
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *a) ⇒ Object
21
22
|
# File 'lib/gemical/commands/bundle.rb', line 21
def method_missing(sym, *a)
end
|
Instance Attribute Details
#sources ⇒ Object
Returns the value of attribute sources.
4
5
6
|
# File 'lib/gemical/commands/bundle.rb', line 4
def sources
@sources
end
|
Instance Method Details
#gem ⇒ Object
15
16
|
# File 'lib/gemical/commands/bundle.rb', line 15
def gem(*)
end
|
#group ⇒ Object
18
19
|
# File 'lib/gemical/commands/bundle.rb', line 18
def group(*)
end
|
#source(path) ⇒ Object
11
12
13
|
# File 'lib/gemical/commands/bundle.rb', line 11
def source(path, *)
@sources << path
end
|