Sha256: 82247593ac8cd193357d237ac35dff1faf86eea92bb1df6e3f90f72d445260e4

Contents?: true

Size: 601 Bytes

Versions: 5

Compression:

Stored size: 601 Bytes

Contents

def is_rbx?
  defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /rbx/
end

def jruby?
  defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /jruby/
end


module M
  def hello; :hello_module; end
end

$o = Object.new
def $o.hello; :hello_singleton; end

# A comment for hello

  # It spans two lines and is indented by 2 spaces
def hello; :hello; end

# a
# b
def comment_test1; end

 # a
 # b
def comment_test2; end

# a
#
# b
def comment_test3; end

# a

# b
def comment_test4; end


# a
  # b
    # c
# d
def comment_test5; end

# This is a comment for MyLambda
MyLambda = lambda { :lambda }
MyProc = Proc.new { :proc }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
method_source-0.7.1 test/test_helper.rb
method_source-0.7.0 test/test_helper.rb
method_source-0.6.7 test/test_helper.rb
method_source-0.6.6 test/test_helper.rb
method_source-0.6.5 test/test_helper.rb