Last active
April 17, 2021 06:32
-
-
Save mugyu/4740c9312e70712fa52bad3ac2294fa0 to your computer and use it in GitHub Desktop.
example of the gem in ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gem Package | |
* mugyu.gemspec | |
* mugyu.rb | |
Install example gem | |
* Gemfile | |
* example.rb | |
$ bundle config set path 'vendor/bundle' --local | |
$ bundle install | |
$ bundle exec ruby example.rb | |
gem 'mugyu', git: 'https://gist.github.com/4740c9312e70712fa52bad3ac2294fa0.git' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'mugyu', git: 'https://gist.github.com/4740c9312e70712fa52bad3ac2294fa0.git' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gem::Specification.new do |spec| | |
spec.name = 'mugyu' | |
spec.version = '0.0.1' | |
spec.authors = ['mugyu'] | |
spec.email = ['[email protected]'] | |
spec.summary = 'example of the gem' | |
spec.files = ['mugyu.rb'] | |
spec.require_path = '.' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Mugyu | |
def what_is_your_name | |
"I am mugyu. Please call me mugyu." | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment