Class: ADSL::Extract::Rails::MetaUnknown

Inherits:
Object
  • Object
show all
Defined in:
lib/adsl/extract/rails/other_meta.rb

Direct Known Subclasses

PartiallyUnknownHash

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



15
16
17
# File 'lib/adsl/extract/rails/other_meta.rb', line 15

def method_missing(method, *args, &block)
  self
end

Instance Method Details

#adsl_astObject



27
28
29
# File 'lib/adsl/extract/rails/other_meta.rb', line 27

def adsl_ast
  nil
end

#respond_to?(method_name, *args, &block) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/adsl/extract/rails/other_meta.rb', line 19

def respond_to?(method_name, *args, &block)
  return true unless method_name == :adsl_ast
end

#to_sObject



23
24
25
# File 'lib/adsl/extract/rails/other_meta.rb', line 23

def to_s
  self.class.name
end