Sha256: c26b875d715668d7d77e52d9e43368249a9eb34389749e7ea97361c94a4b2550
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
Contents
# This is an example toplevel class method. def self.example_toplevel_method_class_method end # This is an example toplevel instance method. def example_toplevel_method end # This is an example module. module ExampleModule # This is an example constant in a module. EXAMPLE_CONSTANT = "example constant in a module" # This is an example class method in a module. def self.example_class_method end # This is an example instance method in a module. def example_method end end # This is an example class. class ExampleClass # This is an example constant in a class. EXAMPLE_CONSTANT = "example constant in a class" # This is an example class method in a class. def self.example_class_method end # This is an example attribute. attr :example_attribute # This is an example attribute reader. attr_reader :example_attribute_reader # This is an example attribute writer. attr_writer :example_attribute_writer # This is an example attribute accessor. attr_accessor :example_attribute_accessor # This is an example instance method in a class. def example_method end end
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
shomen-yard-0.1.0 | spec/fixture/lib/example.rb |
shomen-rdoc-0.1.0 | spec/fixture/lib/example.rb |
shomen-0.1.1 | spec/fixture/lib/example.rb |
shomen-0.1.0 | spec/fixture/lib/example.rb |