Class: Flatito::YAMLWithLineNumber::Whatever
- Inherits:
-
Object
- Object
- Flatito::YAMLWithLineNumber::Whatever
- Defined in:
- lib/flatito/yaml_with_line_number.rb
Instance Attribute Summary collapse
-
#klassname ⇒ Object
readonly
Returns the value of attribute klassname.
Instance Method Summary collapse
-
#initialize(klassname) ⇒ Whatever
constructor
A new instance of Whatever.
- #method_missing ⇒ Object
- #respond_to_missing? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(klassname) ⇒ Whatever
Returns a new instance of Whatever.
14 15 16 |
# File 'lib/flatito/yaml_with_line_number.rb', line 14 def initialize(klassname) @klassname = klassname end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing ⇒ Object
22 23 24 |
# File 'lib/flatito/yaml_with_line_number.rb', line 22 def method_missing(*) self end |
Instance Attribute Details
#klassname ⇒ Object (readonly)
Returns the value of attribute klassname.
12 13 14 |
# File 'lib/flatito/yaml_with_line_number.rb', line 12 def klassname @klassname end |
Instance Method Details
#respond_to_missing? ⇒ Boolean
26 27 28 |
# File 'lib/flatito/yaml_with_line_number.rb', line 26 def respond_to_missing?(*) false end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/flatito/yaml_with_line_number.rb', line 18 def to_s "[object: #{klassname}]" end |