Sha256: cabadde6cd9af1ffd4db28ab5c8addfca251e8c49eff07d4723ec7335b1de258
Contents?: true
Size: 665 Bytes
Versions: 10
Compression:
Stored size: 665 Bytes
Contents
module A class B notaconstant = 2 SOMECONSTANT= "hello" def method SOMECONSTANT = "don't document this" end MYCONSTANT = A + B + C + D end end MyClass = Struct.new(:a, :b, :c) NotMyClass = Struct.new("NotMyClass2", :b, :c) MyEmptyStruct = Struct.new MyStructWithConstant = Struct.new do # A constant. CONSTANT = 42 # Special constant (empty symbol) EMPTY = :'' end # A crazy struct. # # @attr [String] bar An attr # @attr [Number] baz Another attr # @!attribute new_syntax # Attribute defined with the new syntax # @return [Symbol] something useful DocstringStruct = Struct.new(:bar, :baz, :new_syntax)
Version data entries
10 entries across 10 versions & 1 rubygems