Class: Flatito::YAMLWithLineNumber::Whatever

Inherits:
Object
  • Object
show all
Defined in:
lib/flatito/yaml_with_line_number.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_missingObject



22
23
24
# File 'lib/flatito/yaml_with_line_number.rb', line 22

def method_missing(*)
  self
end

Instance Attribute Details

#klassnameObject (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

Returns:

  • (Boolean)


26
27
28
# File 'lib/flatito/yaml_with_line_number.rb', line 26

def respond_to_missing?(*)
  false
end

#to_sObject



18
19
20
# File 'lib/flatito/yaml_with_line_number.rb', line 18

def to_s
  "[object: #{klassname}]"
end