Feature #10172 ยป AttrIsDeprecated.PATCH
| lib/drb/drb.rb | ||
|---|---|---|
|
def initialize(option)
|
||
|
@option = option.to_s
|
||
|
end
|
||
|
attr :option
|
||
|
attr_reader :option
|
||
|
def to_s; @option; end
|
||
|
def ==(other)
|
||
| lib/irb/ruby-token.rb | ||
|---|---|---|
|
@line_no = line_no
|
||
|
@char_no = char_no
|
||
|
end
|
||
|
attr :seek, :line_no, :char_no
|
||
|
attr_reader :seek, :line_no, :char_no
|
||
|
end
|
||
|
class TkNode < Token
|
||
|
def initialize(seek, line_no, char_no)
|
||
|
super
|
||
|
end
|
||
|
attr :node
|
||
|
attr_reader :node
|
||
|
end
|
||
|
class TkId < Token
|
||
| ... | ... | |
|
super(seek, line_no, char_no)
|
||
|
@name = name
|
||
|
end
|
||
|
attr :name
|
||
|
attr_reader :name
|
||
|
end
|
||
|
class TkVal < Token
|
||
| ... | ... | |
|
super(seek, line_no, char_no)
|
||
|
@value = value
|
||
|
end
|
||
|
attr :value
|
||
|
attr_reader :value
|
||
|
end
|
||
|
class TkOp < Token
|
||
| ... | ... | |
|
op = TkReading2Token[op][0] unless op.kind_of?(Symbol)
|
||
|
@op = op
|
||
|
end
|
||
|
attr :op
|
||
|
attr_reader :op
|
||
|
end
|
||
|
class TkUnknownChar < Token
|
||
| ... | ... | |
|
super(seek, line_no, char_no)
|
||
|
@name = name
|
||
|
end
|
||
|
attr :name
|
||
|
attr_reader :name
|
||
|
end
|
||
|
class TkError < Token
|
||
| lib/net/telnet.rb | ||
|---|---|---|
|
# The socket the Telnet object is using. Note that this object becomes
|
||
|
# a delegate of the Telnet object, so normally you invoke its methods
|
||
|
# directly on the Telnet object.
|
||
|
attr :sock
|
||
|
attr_reader :sock
|
||
|
# Set telnet command interpretation on (+mode+ == true) or off
|
||
|
# (+mode+ == false), or return the current value (+mode+ not
|
||
| lib/rdoc/ruby_token.rb | ||
|---|---|---|
|
@text = text
|
||
|
end
|
||
|
attr :seek
|
||
|
attr :line_no
|
||
|
attr :char_no
|
||
|
attr_reader :seek
|
||
|
attr_reader :line_no
|
||
|
attr_reader :char_no
|
||
|
attr_accessor :text
|
||
| ... | ... | |
|
@node = node
|
||
|
end
|
||
|
attr :node
|
||
|
attr_reader :node
|
||
|
def ==(other)
|
||
|
self.class == other.class and
|
||
| ... | ... | |
|
super(seek, line_no, char_no)
|
||
|
@name = name
|
||
|
end
|
||
|
attr :name
|
||
|
attr_reader :name
|
||
|
def ==(other)
|
||
|
self.class == other.class and
|
||
| ... | ... | |
|
@text = nil
|
||
|
end
|
||
|
attr :op
|
||
|
attr_reader :op
|
||
|
def ==(other)
|
||
|
self.class == other.class and
|
||
| ... | ... | |
|
super(seek, line_no, char_no)
|
||
|
@name = name
|
||
|
end
|
||
|
attr :name
|
||
|
attr_reader :name
|
||
|
def ==(other)
|
||
|
self.class == other.class and
|
||
| lib/thwait.rb | ||
|---|---|---|
|
end
|
||
|
# Returns the array of threads that have not terminated yet.
|
||
|
attr :threads
|
||
|
attr_reader :threads
|
||
|
#
|
||
|
# Returns +true+ if there are no threads in the pool still running.
|
||