Module: Slate
- Defined in:
- lib/slate/target.rb,
lib/slate.rb,
lib/slate/error.rb,
lib/slate/graph.rb,
lib/slate/client.rb,
lib/slate/parser.rb,
lib/slate/version.rb,
lib/slate/calculation.rb,
lib/slate/calculation/last.rb,
lib/slate/calculation/mean.rb,
lib/slate/parser/extensions.rb
Overview
TODO: Tests
Defined Under Namespace
Modules: Calculation, Error, SlateTree Classes: Client, Graph, NotParseable, Parser, Target
Constant Summary collapse
- VERSION =
"1.1.2"
Class Method Summary collapse
-
.configure {|client| ... } ⇒ Object
Public: Configures a new Client instance.
Class Method Details
.configure {|client| ... } ⇒ Object
Public: Configures a new Client instance.
Yields the Client instance to configure.
Examples
Slate.configure do |config|
config.endpoint = "http://example.com"
end
# => Slate::Client
Returns a configured Client instance.
25 26 27 28 29 |
# File 'lib/slate.rb', line 25 def self.configure client = Client.new yield client client end |