Class: AtCoderFriends::SampleData
- Inherits:
-
Struct
- Object
- Struct
- AtCoderFriends::SampleData
- Defined in:
- lib/at_coder_friends/problem.rb
Instance Attribute Summary collapse
-
#ext ⇒ Object
Returns the value of attribute ext.
-
#no ⇒ Object
Returns the value of attribute no.
-
#txt ⇒ Object
Returns the value of attribute txt.
Instance Method Summary collapse
-
#initialize(no, ext, txt) ⇒ SampleData
constructor
A new instance of SampleData.
Constructor Details
#initialize(no, ext, txt) ⇒ SampleData
Returns a new instance of SampleData.
5 6 7 |
# File 'lib/at_coder_friends/problem.rb', line 5 def initialize(no, ext, txt) super(no.to_i, ext, txt) end |
Instance Attribute Details
#ext ⇒ Object
Returns the value of attribute ext
4 5 6 |
# File 'lib/at_coder_friends/problem.rb', line 4 def ext @ext end |
#no ⇒ Object
Returns the value of attribute no
4 5 6 |
# File 'lib/at_coder_friends/problem.rb', line 4 def no @no end |
#txt ⇒ Object
Returns the value of attribute txt
4 5 6 |
# File 'lib/at_coder_friends/problem.rb', line 4 def txt @txt end |