lib/kilya.rb in kilya-0.0.6 vs lib/kilya.rb in kilya-0.0.7
- old
+ new
@@ -1,16 +1,23 @@
-# main pont
+# main point
require 'services/string_builder'
+require 'services/requester'
class Kilya
# It's my first simple gem
#
# Example:
# >> Kilya.reverse("abcd")
# => "dcba"
- #
+ # >> Kilya.request("http://example.com")
+ # =><HTML><HEAD><meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\"> ...
# Arguments:
# line: (String)
class << self
include Services::StringBuilder
+
+ def request(path)
+ requester = Services::Requester.new
+ requester.request(url: path)
+ end
end
end