Class: Typography

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(word, escape, result) ⇒ Typography

Returns a new instance of Typography.



6
7
8
9
10
# File 'lib/typography.rb', line 6

def initialize(word, escape, result)
  @word = word
  @escape = escape
  @result = result
end

Instance Attribute Details

#escapeObject (readonly)

Returns the value of attribute escape.



4
5
6
# File 'lib/typography.rb', line 4

def escape
  @escape
end

#resultObject (readonly)

Returns the value of attribute result.



4
5
6
# File 'lib/typography.rb', line 4

def result
  @result
end

#wordObject (readonly)

Returns the value of attribute word.



4
5
6
# File 'lib/typography.rb', line 4

def word
  @word
end

Instance Method Details

#callObject



12
13
14
# File 'lib/typography.rb', line 12

def call
  analyze_string
end