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
| 0 ? true : false | |
| # => true | |
| // ? true : false | |
| # (irb):2: warning: regex literal in condition | |
| # => false | |
| '' ? true : false | |
| # (irb):4: warning: string literal in condition | |
| # => true |
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
| # Install Gems with bundle install | |
| execute "gitlab-bundle-install" do | |
| command "bundle install" | |
| cwd node['gitlab']['app_home'] | |
| user node['gitlab']['user'] | |
| group node['gitlab']['group'] | |
| end | |
| =============== | |
| Error message |
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
| require "bigdecimal" | |
| class Decimal < BigDecimal | |
| end | |
| # Inheritance breaks is_a? function | |
| # Decimal.new("9876543210").is_a?(Decimal) | |
| # => false | |
| # jruby 1.6.7.2 (ruby-1.8.7-p357) (2012-05-01 26e08ba) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_31) [darwin-x86_64-java] | |
| puts "Decimal.new is a Decimal object?: #{Decimal.new("9876543210").is_a?(Decimal)}" |